From b853dbb50fb7c46fb5a70f349a3f264f0bb94e8c Mon Sep 17 00:00:00 2001 From: Vladimir Dergachev Date: Sat, 19 Feb 2005 16:00:12 +0000 Subject: 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. --- src/radeon_video.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit v1.2.3