diff options
author | Dave Airlie <airlied@clockmaker.usersys.redhat.com> | 2007-12-19 10:25:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@clockmaker.usersys.redhat.com> | 2007-12-19 10:25:41 +1000 |
commit | 98b247066d00db66abe91f518cd93b5c4da4cfb4 (patch) | |
tree | 76251f398df16a58e77e28d41f5a5f9800d349b6 | |
parent | bd7206fa120495037e3fea0c920d0031d7715bf6 (diff) |
fix big endian build since zaphod fixups
-rw-r--r-- | src/radeon_cursor.c | 4 | ||||
-rw-r--r-- | src/radeon_render.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index 6133b2c..5b04848 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -74,12 +74,12 @@ #define CURSOR_SWAPPING_START() \ do { \ OUTREG(RADEON_SURFACE_CNTL, \ - (info->ModeReg.surface_cntl | \ + (info->ModeReg->surface_cntl | \ RADEON_NONSURF_AP0_SWP_32BPP | RADEON_NONSURF_AP1_SWP_32BPP) & \ ~(RADEON_NONSURF_AP0_SWP_16BPP | RADEON_NONSURF_AP1_SWP_16BPP)); \ } while (0) #define CURSOR_SWAPPING_END() (OUTREG(RADEON_SURFACE_CNTL, \ - info->ModeReg.surface_cntl)) + info->ModeReg->surface_cntl)) #else diff --git a/src/radeon_render.c b/src/radeon_render.c index 490dec1..a80d136 100644 --- a/src/radeon_render.c +++ b/src/radeon_render.c @@ -317,7 +317,7 @@ static Bool RADEONSetupRenderByteswap(ScrnInfoPtr pScrn, int tex_bytepp) { RADEONInfoPtr info = RADEONPTR(pScrn); unsigned char *RADEONMMIO = info->MMIO; - CARD32 swapper = info->ModeReg.surface_cntl; + CARD32 swapper = info->ModeReg->surface_cntl; swapper &= ~(RADEON_NONSURF_AP0_SWP_16BPP | RADEON_NONSURF_AP1_SWP_16BPP | RADEON_NONSURF_AP0_SWP_32BPP | RADEON_NONSURF_AP1_SWP_32BPP); @@ -345,7 +345,7 @@ static void RADEONRestoreByteswap(RADEONInfoPtr info) { unsigned char *RADEONMMIO = info->MMIO; - OUTREG(RADEON_SURFACE_CNTL, info->ModeReg.surface_cntl); + OUTREG(RADEON_SURFACE_CNTL, info->ModeReg->surface_cntl); } #endif /* X_BYTE_ORDER == X_BIG_ENDIAN */ |