drm/i915: Disable "disabled FBC" message when a no-op

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-09-22 13:15:10 +01:00
parent 5c12a07e80
commit a5cad620b3
1 changed files with 3 additions and 0 deletions

View 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);