summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/radeon_render.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_render.c b/src/radeon_render.c
index f05c8502..145b6538 100644
--- a/src/radeon_render.c
+++ b/src/radeon_render.c
@@ -312,8 +312,9 @@ static Bool RADEONSetupRenderByteswap(ScrnInfoPtr pScrn, int tex_bytepp)
| RADEON_NONSURF_AP0_SWP_16BPP);
break;
case 4:
- OUTREG(RADEON_SURFACE_CNTL, info->ModeReg.surface_cntl
- | RADEON_NONSURF_AP0_SWP_32BPP);
+ OUTREG(RADEON_SURFACE_CNTL, (info->ModeReg.surface_cntl &
+ ~RADEON_NONSURF_AP0_SWP_16BPP)
+ | RADEON_NONSURF_AP0_SWP_32BPP);
break;
default:
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "%s: Don't know what to do for "