projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bbde0e
)
drm: fixup r300 scratch on BE machines
author
Dave Airlie
<airlied@linux.ie>
Sun, 23 Apr 2006 08:14:00 +0000
(18:14 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 23 Apr 2006 08:14:00 +0000
(18:14 +1000)
This fixes the r300 scratch stuff to work on PPC,
from Ben Herrenschmidt on IRC.
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/r300_cmdbuf.c
patch
|
blob
|
history
diff --git
a/drivers/char/drm/r300_cmdbuf.c
b/drivers/char/drm/r300_cmdbuf.c
index b108c7f913b2cb75ef93924f00845bd40f1bc778..26bdf2ca59d759cd581a6a301660c88f0a0364f1 100644
(file)
--- 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);