[Intel-xe] [PATCH 3/3] maybe xe is broken enough that it gives you a new vma every time?

Ville Syrjala ville.syrjala at linux.intel.com
Wed Sep 20 14:03:39 UTC 2023


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

---
 drivers/gpu/drm/i915/display/intel_cursor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c
index afe1d0fa0537..ab6a56ed40a9 100644
--- a/drivers/gpu/drm/i915/display/intel_cursor.c
+++ b/drivers/gpu/drm/i915/display/intel_cursor.c
@@ -752,7 +752,8 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
 
 	local_irq_enable();
 
-	if (old_plane_state->hw.fb != new_plane_state->hw.fb) {
+	if (old_plane_state->ggtt_vma != new_plane_state->ggtt_vma) {
+		drm_WARN_ON_ONCE(plane->base.dev, old_plane_state->hw.fb == new_plane_state->hw.fb);
 		drm_vblank_work_init(&old_plane_state->unpin_work, &crtc->base,
 				     intel_cursor_unpin_work);
 
-- 
2.41.0



More information about the Intel-xe mailing list