mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
drm/i915/fbc: Don't use a fence for a plane if FBC is not possible
No point in wasting a fence on a plane if it can't do FBC anyway. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240123090051.29818-1-ville.syrjala@linux.intel.com Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
This commit is contained in:
parent
6d7241b0e9
commit
c9a63bf238
|
|
@ -535,7 +535,7 @@ bool intel_plane_uses_fence(const struct intel_plane_state *plane_state)
|
|||
struct drm_i915_private *dev_priv = to_i915(plane->base.dev);
|
||||
|
||||
return DISPLAY_VER(dev_priv) < 4 ||
|
||||
(plane->fbc &&
|
||||
(plane->fbc && !plane_state->no_fbc_reason &&
|
||||
plane_state->view.gtt.type == I915_GTT_VIEW_NORMAL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user