projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff42a00
)
Fix hangs on big-endian (e.g., PowerPC) hardware.
author
Ian Romanick
<idr@us.ibm.com>
Sun, 17 Oct 2004 21:29:58 +0000
(21:29 +0000)
committer
Ian Romanick
<idr@us.ibm.com>
Sun, 17 Oct 2004 21:29:58 +0000
(21:29 +0000)
src/mesa/drivers/dri/r128/r128_ioctl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r128/r128_ioctl.c
b/src/mesa/drivers/dri/r128/r128_ioctl.c
index d9fc02501a79d6b717087484fa4be1706534876f..bf643210c56d37d29e699e63abe0421d174d6a55 100644
(file)
--- a/
src/mesa/drivers/dri/r128/r128_ioctl.c
+++ b/
src/mesa/drivers/dri/r128/r128_ioctl.c
@@
-225,12
+225,11
@@
static void delay( void ) {
static int r128WaitForFrameCompletion( r128ContextPtr rmesa )
{
unsigned char *R128MMIO = rmesa->r128Screen->mmio.map;
- uint32_t frame;
int i;
int wait = 0;
while ( 1 ) {
-
frame = *(volatile unsigned int *)(R128MMIO + R128_LAST_FRAME_REG
);
+
uint32_t frame = LE32_TO_CPU(*(volatile uint32_t *)(R128MMIO + R128_LAST_FRAME_REG)
);
if ( rmesa->sarea->last_frame - frame <= R128_MAX_OUTSTANDING ) {
break;