mirror of https://gitee.com/openkylin/linux.git
drm/i915: Only flush fbc on sw when fbc is enabled.
Avoid touching fbc register when fbc is disabled. Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
24955f2412
commit
01d06e9f96
|
@ -352,6 +352,9 @@ void gen8_fbc_sw_flush(struct drm_device *dev, u32 value)
|
|||
if (!IS_GEN8(dev))
|
||||
return;
|
||||
|
||||
if (!intel_fbc_enabled(dev))
|
||||
return;
|
||||
|
||||
I915_WRITE(MSG_FBC_REND_STATE, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue