From: Ville Syrjälä <[email protected]>

Use hw.crtc as opposed to uapi.crtc in the panic code. I suspect
this stuff doesn't handle joiner correctly in other ways either
but can't be bothered to dig deeper.

Signed-off-by: Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_plane.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_plane.c 
b/drivers/gpu/drm/i915/display/intel_plane.c
index 870e6b896be6..6a3d4ddc52a1 100644
--- a/drivers/gpu/drm/i915/display/intel_plane.c
+++ b/drivers/gpu/drm/i915/display/intel_plane.c
@@ -1277,7 +1277,8 @@ static unsigned int intel_4tile_get_offset(unsigned int 
width, unsigned int x, u
 static void intel_panic_flush(struct drm_plane *plane)
 {
        struct intel_plane_state *plane_state = 
to_intel_plane_state(plane->state);
-       struct intel_crtc_state *crtc_state = 
to_intel_crtc_state(plane->state->crtc->state);
+       struct intel_crtc *crtc = to_intel_crtc(plane_state->hw.crtc);
+       struct intel_crtc_state *crtc_state = 
to_intel_crtc_state(crtc->base.state);
        struct intel_plane *iplane = to_intel_plane(plane);
        struct intel_display *display = to_intel_display(iplane);
        struct drm_framebuffer *fb = plane_state->hw.fb;
-- 
2.49.1

Reply via email to