diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-19 14:07:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-19 16:15:07 +0100 |
commit | e27626898b87a1602e6af6f7effcacf772ead491 (patch) | |
tree | 506e8b40ded5291e4f8a8207038a778dd14572fb /tests/gem_tiled_pread_basic.c | |
parent | 27d30707410c4a89480effa75bb6792331ca3342 (diff) |
igt: Check the physical swizzle status
The kernel tries to hide L-shaped memory with asymmetric swizzling from
userspace by reporting lies through the get-tiling interface. Check for
these lies by comparing the reported swizzle with the actual swizzle,
and only run swizzling tests where we know the underlying physical
swizzling.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_tiled_pread_basic.c')
-rw-r--r-- | tests/gem_tiled_pread_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_tiled_pread_basic.c b/tests/gem_tiled_pread_basic.c index 1dfd87c3..bad36509 100644 --- a/tests/gem_tiled_pread_basic.c +++ b/tests/gem_tiled_pread_basic.c @@ -121,7 +121,7 @@ igt_simple_main fd = drm_open_driver(DRIVER_INTEL); handle = create_bo(fd); - gem_get_tiling(fd, handle, &tiling, &swizzle); + igt_require(gem_get_tiling(fd, handle, &tiling, &swizzle)); devid = intel_get_drm_devid(fd); |