Mesa (master): r300_cmdbuf.c: convert cast to a form supported by Sun cc
Brian Paul
brianp at kemper.freedesktop.org
Wed Mar 25 14:09:20 UTC 2009
Module: Mesa
Branch: master
Commit: ff421b6e0b3ef218799350358b9bff5610f17c3a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff421b6e0b3ef218799350358b9bff5610f17c3a
Author: Alan Coopersmith <alan.coopersmith at sun.com>
Date: Tue Mar 24 20:51:53 2009 -0700
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 <alan.coopersmith at sun.com>
---
src/mesa/drivers/dri/r300/r300_cmdbuf.c | 2 +-
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 3eb2dc8..f447275 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);
More information about the mesa-commit
mailing list