summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-04-23 08:07:57 +0000
committerDave Airlie <airlied@linux.ie>2006-04-23 08:07:57 +0000
commit30a5787d3671fba89d14efb638695c2dd61adf03 (patch)
treec656ab9412af7bc2627467c8a4b59c8a0cd51743 /shared-core
parent4a49e6c3668dd281f70a13fb382fac93452758e2 (diff)
Fix from Benh for ppc r300 scratch
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/r300_cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/r300_cmdbuf.c b/shared-core/r300_cmdbuf.c
index 6290c024..dc866823 100644
--- a/shared-core/r300_cmdbuf.c
+++ b/shared-core/r300_cmdbuf.c
@@ -722,7 +722,7 @@ static int r300_scratch(drm_radeon_private_t *dev_priv,
dev_priv->scratch_ages[header.scratch.reg] ++;
- ref_age_base = *(u32 **)cmdbuf->buf;
+ ref_age_base = (u32 *)(unsigned long)*((uint64_t *)cmdbuf->buf);
cmdbuf->buf += sizeof(uint64_t);
cmdbuf->bufsz -= sizeof(uint64_t);