summaryrefslogtreecommitdiff
path: root/src/radeon_video.c
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@mindspring.com>2005-02-19 16:00:12 +0000
committerVladimir Dergachev <volodya@mindspring.com>2005-02-19 16:00:12 +0000
commitb853dbb50fb7c46fb5a70f349a3f264f0bb94e8c (patch)
tree229570851dba33f1446b9f54f0ee32786798616c /src/radeon_video.c
parent84290849b4aee336e9db0779d93fc2d7ed8881b1 (diff)
Modified:
programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Fix an INREG without WaitForIdleMMIO. This one should be unlikely to trigger, but we should still do this in the name of correctness.
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r--src/radeon_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index 43b6743b..00038247 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -691,6 +691,7 @@ RADEONSetOverlayGamma(ScrnInfoPtr pScrn, CARD32 gamma)
CARD32 ov0_scale_cntl;
/* Set gamma */
+ RADEONWaitForIdleMMIO(pScrn);
ov0_scale_cntl = INREG(RADEON_OV0_SCALE_CNTL) & ~RADEON_SCALER_GAMMA_SEL_MASK;
OUTREG(RADEON_OV0_SCALE_CNTL, ov0_scale_cntl | (gamma << 0x00000005));