[PATCH 6/6] drm/i915/display: Add early pipe_src initialisation for gmch
Nemesa Garg
nemesa.garg at intel.com
Thu Oct 17 08:09:40 UTC 2024
Signed-off-by: Nemesa Garg <nemesa.garg at intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 9dd140719349..6643b39bce13 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -4722,7 +4722,9 @@ intel_modeset_pipe_config(struct intel_atomic_state *state,
*/
drm_mode_get_hv_timing(&crtc_state->hw.mode,
&pipe_src_w, &pipe_src_h);
- drm_rect_init(&crtc_state->pipe_src, 0, 0,
+
+ if (HAS_GMCH(i915))
+ drm_rect_init(&crtc_state->pipe_src, 0, 0,
pipe_src_w, pipe_src_h);
for_each_new_connector_in_state(&state->base, connector, connector_state, i) {
--
2.25.1
More information about the Intel-gfx-trybot
mailing list