summaryrefslogtreecommitdiff
path: root/src/i830_display.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-07-07 10:15:32 -0700
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-07-07 10:15:32 -0700
commitbf831117b4659cc4f2774098dee938505f780a9b (patch)
tree627823ca5638f14cc19bc6b2f815b1bcae1a6c40 /src/i830_display.c
parentb426866fe1be2ad3861559beff69186379a6afad (diff)
FBC fixes:
- allow FBC and Tiling to be forced off if configured to do so - only touch FBC registers if pI830->fb_compression is true
Diffstat (limited to 'src/i830_display.c')
-rw-r--r--src/i830_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index 853f4e40..f3b5c50a 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -747,7 +747,7 @@ i830_disable_fb_compression(xf86CrtcPtr crtc)
ScrnInfoPtr pScrn = crtc->scrn;
I830Ptr pI830 = I830PTR(pScrn);
uint32_t fbc_ctl;
- char pipe = (INREG(FBC_CONTROL2) & 1) ? 'b' : 'a';;
+ char pipe = (INREG(FBC_CONTROL2) & 1) ? 'b' : 'a';
/* Disable compression */
fbc_ctl = INREG(FBC_CONTROL);
@@ -764,7 +764,8 @@ static void
i830_crtc_prepare (xf86CrtcPtr crtc)
{
/* Temporarily turn off FB compression during modeset */
- i830_disable_fb_compression(crtc);
+ if (i830_use_fb_compression(crtc))
+ i830_disable_fb_compression(crtc);
crtc->funcs->dpms (crtc, DPMSModeOff);
}