[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: Minor fix of bug in code
Arjun Melkaveri
arjun.melkaveri at intel.com
Wed Nov 17 19:38:03 UTC 2021
Minor fix of bug in code, This was causing Test assertion
failure in function "__captureN" for gem_execbuf_wr.
Signed-off-by: Arjun Melkaveri <arjun.melkaveri 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 143d97ad..b80f597f 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -428,7 +428,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,
obj[0].handle = gem_create(fd, 4096);
obj[0].offset = get_offset(ahnd, obj[0].handle, 4096, 0);
- obj[0].flags = EXEC_OBJECT_WRITE | ahnd ? EXEC_OBJECT_PINNED : 0;
+ obj[0].flags = EXEC_OBJECT_WRITE | (ahnd ? EXEC_OBJECT_PINNED : 0);
for (i = 0; i < count; i++) {
obj[i + 1].handle = gem_create(fd, size);
--
2.25.1
More information about the igt-dev
mailing list