aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAlan Coopersmith <[email protected]>2009-03-24 20:51:53 -0700
committerBrian Paul <[email protected]>2009-03-25 08:08:49 -0600
commitff421b6e0b3ef218799350358b9bff5610f17c3a (patch)
treeed50378b6f257081d87a787bf0d9a2270c6de157 /src/mesa/drivers
parente101959b6a262ba34a12b407ea6f480e6b4d7d72 (diff)
r300_cmdbuf.c: convert cast to a form supported by Sun cc
Fixes Sun cc error: "r300_cmdbuf.c", line 142: invalid cast expression Signed-off-by: Alan Coopersmith <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/r300_cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index 3eb2dc8f5a0..f4472756f10 100644
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -139,7 +139,7 @@ static void r300PrintStateAtom(r300ContextPtr r300, struct r300_state_atom *stat
if (RADEON_DEBUG & DEBUG_VERBOSE) {
for (i = 0; i < dwords;) {
- cmd = (drm_r300_cmd_header_t) state->cmd[i];
+ cmd = *((drm_r300_cmd_header_t *) &state->cmd[i]);
reg = (cmd.packet0.reghi << 8) | cmd.packet0.reglo;
fprintf(stderr, " %s[%d]: cmdpacket0 (first reg=0x%04x, count=%d)\n",
state->name, i, reg, cmd.packet0.count);