[Intel-gfx] [PATCH i-g-t 2/2] test/i915/gem_exec_await: prefer gem_mmap__device_coherent
Matthew Auld
matthew.auld at intel.com
Mon Feb 21 14:03:42 UTC 2022
Make it play nice on at least DG1.
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
---
tests/i915/gem_exec_await.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_exec_await.c b/tests/i915/gem_exec_await.c
index bf8eb682..fe176595 100644
--- a/tests/i915/gem_exec_await.c
+++ b/tests/i915/gem_exec_await.c
@@ -126,8 +126,8 @@ static void wide(int fd, const intel_ctx_t *ctx, int ring_size,
if (ahnd)
exec[e].exec[0].flags = EXEC_OBJECT_PINNED;
- exec[e].cmd = gem_mmap__wc(fd, exec[e].exec[0].handle,
- 0, 4096, PROT_WRITE);
+ exec[e].cmd = gem_mmap__device_coherent(fd, exec[e].exec[0].handle,
+ 0, 4096, PROT_WRITE);
gem_set_domain(fd, exec[e].exec[0].handle,
I915_GEM_DOMAIN_WC, I915_GEM_DOMAIN_WC);
--
2.34.1
More information about the Intel-gfx
mailing list