[PATCH 1/6] drm/i915/display: Disable joiner and pfit
Ville Syrjälä
ville.syrjala at linux.intel.com
Fri Nov 22 18:45:57 UTC 2024
On Wed, Nov 20, 2024 at 11:08:33AM +0530, Nemesa Garg wrote:
> Disable panel fitting if joiner is enabled as
> backporting of joiner part is required in case
> of pfit.
>
> Signed-off-by: Nemesa Garg <nemesa.garg at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_pfit.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_pfit.c b/drivers/gpu/drm/i915/display/intel_pfit.c
> index 50861aa78a89..e214e19f8174 100644
> --- a/drivers/gpu/drm/i915/display/intel_pfit.c
> +++ b/drivers/gpu/drm/i915/display/intel_pfit.c
> @@ -187,6 +187,9 @@ static int pch_panel_fitting(struct intel_crtc_state *crtc_state,
> int pipe_src_h = drm_rect_height(&crtc_state->pipe_src);
> int ret, x, y, width, height;
>
> + if (crtc_state->joiner_pipes)
> + return 0;
> +
This needs to return an error, and it needs to be checked after we've
determined that pfit is in fact needed.
> /* Native modes don't need fitting */
> if (adjusted_mode->crtc_hdisplay == pipe_src_w &&
> adjusted_mode->crtc_vdisplay == pipe_src_h &&
> --
> 2.25.1
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list