[PATCH] i915_gem_execbuffer: no-reloc for gen9+
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Wed Apr 14 17:55:06 UTC 2021
For CI purposes:
Test-with: 20210414164056.30590-1-zbigniew.kempczynski at intel.com
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index 297143511f99..6e873e89fd77 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -500,8 +500,9 @@ eb_validate_vma(struct i915_execbuffer *eb,
* also covers all platforms with local memory.
*/
if (entry->relocation_count &&
- INTEL_GEN(eb->i915) >= 12 && !IS_TIGERLAKE(eb->i915))
+ INTEL_GEN(eb->i915) >= 9) {
return -EINVAL;
+ }
if (unlikely(entry->flags & eb->invalid_flags))
return -EINVAL;
--
2.26.0
More information about the Intel-gfx-trybot
mailing list