[PATCH i-g-t 4/6] tests/i915/gem_exec_capture: Parse the gtt_page_sizes entry

Thomas Hellström thomas.hellstrom at linux.intel.com
Mon Oct 18 10:17:31 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 bd14dab6..0bd41fcf 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -497,6 +497,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