[PATCH 6/8] lift gpu_write_needs_clflush restriction
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Thu Jul 27 08:34:34 UTC 2023
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_domain.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_domain.c b/drivers/gpu/drm/i915/gem/i915_gem_domain.c
index 6dc7f7ad9a6b..2e70ff1794f3 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_domain.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_domain.c
@@ -38,12 +38,6 @@ static bool gpu_write_needs_clflush(struct drm_i915_gem_object *obj)
if (!HAS_LLC(i915) && HAS_SNOOP(i915))
return false;
- /*
- * Always flush cache for UMD objects with PAT index set.
- */
- if (obj->pat_set_by_user)
- return true;
-
/*
* Fully coherent cached access may end up with data in the CPU cache
* which hasn't hit memory yet.
--
2.39.2
More information about the Intel-gfx-trybot
mailing list