diff options
author | Dave Airlie <airlied@linux.ie> | 2006-04-23 18:14:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-04-23 18:14:00 +1000 |
commit | caa98c41c0db9bfda5bc9a0e680f304283089268 (patch) | |
tree | 483a9b38237851293c7170c9af666df332c90da7 /drivers/char/drm | |
parent | 8bbde0e6d52265158ee9625f383500c1a7d09ba9 (diff) | |
download | linux-caa98c41c0db9bfda5bc9a0e680f304283089268.tar.bz2 |
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>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/r300_cmdbuf.c | 2 |
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); |