diff mbox series

[1/9] drm/i915/psr: Set SU area width as pipe src width

Message ID 20240618053026.3268759-2-jouni.hogander@intel.com (mailing list archive)
State New, archived
Headers show
Series Panel Replay eDP more prepare patches | expand

Commit Message

Hogander, Jouni June 18, 2024, 5:30 a.m. UTC
Currently SU area width is set as MAX_INT. This is causing
problems. Instead set it as pipe src width.

Fixes: 86b26b6aeac7 ("drm/i915/psr: Carry su area in crtc_state")

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mika Kahola June 18, 2024, 10:23 a.m. UTC | #1
> -----Original Message-----
> From: Hogander, Jouni <jouni.hogander@intel.com>
> Sent: Tuesday, June 18, 2024 8:30 AM
> To: intel-gfx@lists.freedesktop.org
> Cc: Manna, Animesh <animesh.manna@intel.com>; Kahola, Mika
> <mika.kahola@intel.com>; Hogander, Jouni <jouni.hogander@intel.com>
> Subject: [PATCH 1/9] drm/i915/psr: Set SU area width as pipe src width
> 
> Currently SU area width is set as MAX_INT. This is causing problems. Instead set it as
> pipe src width.
> 
> Fixes: 86b26b6aeac7 ("drm/i915/psr: Carry su area in crtc_state")
> 

Reviewed-by: Mika Kahola <mika.kahola@intel.com>

> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> b/drivers/gpu/drm/i915/display/intel_psr.c
> index 920186c2264d..3f36b94020ff 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -2316,7 +2316,7 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state
> *state,
> 
>  	crtc_state->psr2_su_area.x1 = 0;
>  	crtc_state->psr2_su_area.y1 = -1;
> -	crtc_state->psr2_su_area.x2 = INT_MAX;
> +	crtc_state->psr2_su_area.x2 = drm_rect_width(&crtc_state->pipe_src);
>  	crtc_state->psr2_su_area.y2 = -1;
> 
>  	/*
> --
> 2.34.1
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 920186c2264d..3f36b94020ff 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -2316,7 +2316,7 @@  int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
 
 	crtc_state->psr2_su_area.x1 = 0;
 	crtc_state->psr2_su_area.y1 = -1;
-	crtc_state->psr2_su_area.x2 = INT_MAX;
+	crtc_state->psr2_su_area.x2 = drm_rect_width(&crtc_state->pipe_src);
 	crtc_state->psr2_su_area.y2 = -1;
 
 	/*