Fixes Sun cc error:
"r300_cmdbuf.c", line 142: invalid cast expression

Signed-off-by: Alan Coopersmith <[email protected]>
---
 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);
-- 
1.5.6.5


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to