aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie2006-04-23 18:14:00 +1000
committerDave Airlie2006-04-23 18:14:00 +1000
commitcaa98c41c0db9bfda5bc9a0e680f304283089268 (patch)
tree483a9b38237851293c7170c9af666df332c90da7
parent8bbde0e6d52265158ee9625f383500c1a7d09ba9 (diff)
drm: fixup r300 scratch on BE machines
This fixes the r300 scratch stuff to work on PPC, from Ben Herrenschmidt on IRC. Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r--drivers/char/drm/r300_cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/r300_cmdbuf.c b/drivers/char/drm/r300_cmdbuf.c
index b108c7f913b2..26bdf2ca59d7 100644
--- a/drivers/char/drm/r300_cmdbuf.c
+++ b/drivers/char/drm/r300_cmdbuf.c
@@ -723,7 +723,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(u64);
cmdbuf->bufsz -= sizeof(u64);