diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-22 13:15:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-22 13:15:10 +0100 |
commit | a5cad620b36f15ef3aad434712ae290640aae96c (patch) | |
tree | 9d7e5d2c726d9bc5aba08f4f888f4bb5179bc674 | |
parent | 5c12a07e8073295ce8b57a822f811ac34e4f8420 (diff) | |
download | talos-op-linux-a5cad620b36f15ef3aad434712ae290640aae96c.tar.gz talos-op-linux-a5cad620b36f15ef3aad434712ae290640aae96c.zip |
drm/i915: Disable "disabled FBC" message when a no-op
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e6f7ebfe86e5..b92385498d2c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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); |