[PATCH 5/5] flush-first

Chris Wilson chris at chris-wilson.co.uk
Mon Feb 15 09:57:54 UTC 2021


---
 drivers/gpu/drm/i915/gem/i915_gem_domain.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_domain.c b/drivers/gpu/drm/i915/gem/i915_gem_domain.c
index 9f2ccc255ca1..42dc37a1005e 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_domain.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_domain.c
@@ -329,6 +329,9 @@ i915_gem_object_pin_to_display_plane(struct drm_i915_gem_object *obj,
 	ret = i915_gem_object_lock(obj, &ww);
 	if (ret)
 		goto err;
+
+	i915_gem_object_flush_if_display_locked(obj);
+
 	/*
 	 * The display engine is not coherent with the LLC cache on gen6.  As
 	 * a result, we make sure that the pinning that is about to occur is
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list