projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e101959
)
r300_cmdbuf.c: convert cast to a form supported by Sun cc
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Wed, 25 Mar 2009 03:51:53 +0000
(20:51 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 25 Mar 2009 14:08:49 +0000
(08:08 -0600)
Fixes Sun cc error:
"r300_cmdbuf.c", line 142: invalid cast expression
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
src/mesa/drivers/dri/r300/r300_cmdbuf.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index
3eb2dc8
..
f447275
100644
(file)
--- 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);