drm/i915: Disable "disabled FBC" message when a no-op
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Sep 2010 12:15:10 +0000 (13:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Sep 2010 12:15:10 +0000 (13:15 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index e6f7ebf..b923854 100644 (file)
@@ -1110,6 +1110,9 @@ void i8xx_disable_fbc(struct drm_device *dev)
 
        /* Disable compression */
        fbc_ctl = I915_READ(FBC_CONTROL);
+       if ((fbc_ctl & FBC_CTL_EN) == 0)
+               return;
+
        fbc_ctl &= ~FBC_CTL_EN;
        I915_WRITE(FBC_CONTROL, fbc_ctl);