[PATCH i-g-t 3/6] tests/i915/gem_exec_capture: Parse the gtt_page_sizes entry
Thomas Hellström
thomas.hellstrom at linux.intel.com
Sun Oct 24 17:16:38 UTC 2021
From: Thomas Hellström <thomas.hellstrom at intel.com>
The captured blob occasionaly includes the "gtt_page_sizes" entry.
In that case gem_exec_capture fails to recognize the blob.
Fix this by parsing the entry in question.
Signed-off-by: Thomas Hellström <thomas.hellstrom at intel.com>
---
tests/i915/gem_exec_capture.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
index 705d1875..111b9bd0 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -495,6 +495,12 @@ static void many(int fd, int dir, const intel_ctx_t *ctx, uint64_t size,
addr |= strtoul(str + 1, &str, 16);
igt_assert(*str++ == '\n');
+ if (!strncmp(str, "gtt_page_sizes = 0x", 19)) {
+ str += 19;
+ strtoul(str, &str, 16);
+ igt_assert(*str++ == '\n');
+ }
+
if (!(*str == ':' || *str == '~'))
continue;
--
2.31.1
More information about the Intel-gfx-trybot
mailing list