summaryrefslogtreecommitdiff
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
commitfa467bb5b1c14ed4a4766c423dc600b41edb7c86 (patch)
tree229570851dba33f1446b9f54f0ee32786798616c
parentef1eccdbf3b4a74d7fc60fd2d8a2a5962581a0de (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.
-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 43b6743..0003824 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));