summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-10-17 21:29:58 +0000
committerIan Romanick <idr@us.ibm.com>2004-10-17 21:29:58 +0000
commitadd38812f0b878e083419027fa451eaa24893867 (patch)
tree39392168818b1b360f06c35b881368de8d56ba03 /src
parentff42a00402deab3034163c2b76c2082cce39d901 (diff)
Fix hangs on big-endian (e.g., PowerPC) hardware.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r128/r128_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_ioctl.c b/src/mesa/drivers/dri/r128/r128_ioctl.c
index d9fc02501a..bf643210c5 100644
--- 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;