[igt-dev] [PATCH i-g-t v2] i915/gem_tiled_pread: Skip on unknown swizzling
Chris Wilson
chris at chris-wilson.co.uk
Fri Jan 11 13:54:00 UTC 2019
If we do not know the underlying swizzle on the HW, we do not know the
full tiling pattern and cannot predict the expected results. This is
often because the swizzle varies between pages and is not as constant as
we naively expected.
v2: gem_get_tiling() does the physical==reported check, we just need to
add an acquire
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: <tvrtko.ursulin at linux.intel.com>
---
tests/i915/gem_tiled_pread_pwrite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/gem_tiled_pread_pwrite.c b/tests/i915/gem_tiled_pread_pwrite.c
index 313daa388..fcf0780af 100644
--- a/tests/i915/gem_tiled_pread_pwrite.c
+++ b/tests/i915/gem_tiled_pread_pwrite.c
@@ -122,7 +122,7 @@ igt_simple_main
current_tiling_mode = I915_TILING_X;
handle = create_bo_and_fill(fd);
- gem_get_tiling(fd, handle, &tiling, &swizzle);
+ igt_require(gem_get_tiling(fd, handle, &tiling, &swizzle));
gem_read(fd, handle, 0, linear, sizeof(linear));
--
2.20.1
More information about the igt-dev
mailing list