diff options
author | Matthew Auld <matthew.auld@intel.com> | 2022-05-04 15:54:25 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-05-06 10:25:43 +0100 |
commit | 7e632ea2aeb5502fb43a0941166e422e15940b3a (patch) | |
tree | a702a58099567fa5a837d2dae5ffae4e8adf81af /tests/i915/gem_workarounds.c | |
parent | 929abc51cdd48d673efa03e025b1f31b557972ed (diff) |
tests/i915/gem_workarounds: handle discrete
On discrete the object should already be using I915_CACHING_CACHED, by
default, for system memory objects, although we can no longer explicitly
control the PTE caching bits.
References: https://gitlab.freedesktop.org/drm/intel/-/issues/4873
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_workarounds.c')
-rw-r--r-- | tests/i915/gem_workarounds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/gem_workarounds.c b/tests/i915/gem_workarounds.c index 3d185127..70967b3f 100644 --- a/tests/i915/gem_workarounds.c +++ b/tests/i915/gem_workarounds.c @@ -107,7 +107,8 @@ static int workaround_fail_count(int i915, const intel_ctx_t *ctx) memset(obj, 0, sizeof(obj)); obj[0].handle = gem_create(i915, result_sz); - gem_set_caching(i915, obj[0].handle, I915_CACHING_CACHED); + if (!gem_has_lmem(i915)) + gem_set_caching(i915, obj[0].handle, I915_CACHING_CACHED); obj[1].handle = gem_create(i915, batch_sz); obj[1].relocs_ptr = to_user_pointer(reloc); obj[1].relocation_count = !ahnd ? num_wa_regs : 0; |