[PATCH 1/2] drm/i915/fbc: Don't use a fence for a plane if FBC is not possible
Govindapillai, Vinod
vinod.govindapillai at intel.com
Tue Feb 13 17:32:15 UTC 2024
On Tue, 2024-01-23 at 11:00 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> No point in wasting a fence on a plane if it can't do FBC anyway.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c
> b/drivers/gpu/drm/i915/display/intel_display.c
> index a92e959c8ac7..96a31d73f869 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -533,7 +533,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);
> }
>
More information about the Intel-gfx
mailing list