[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: Add support for local memory
sai.gowtham.ch at intel.com
sai.gowtham.ch at intel.com
Mon Nov 22 07:35:33 UTC 2021
From: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
Add support for local memory region (Device memory)
Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/i915/gem_exec_capture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
index b80f597f..a0614ad3 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -380,7 +380,7 @@ static void capture(int fd, int dir, const intel_ctx_t *ctx,
uint64_t ahnd;
int obj_size = 4096;
- handle = gem_create(fd, obj_size);
+ handle = gem_create_in_memory_regions(fd, obj_size, REGION_LMEM(0));
ahnd = get_reloc_ahnd(fd, ctx->id);
__capture1(fd, dir, ahnd, ctx, e, handle, obj_size);
--
2.32.0
More information about the igt-dev
mailing list