From e27626898b87a1602e6af6f7effcacf772ead491 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 19 Oct 2016 14:07:25 +0100 Subject: 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 --- lib/ioctl_wrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ioctl_wrappers.h') diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index 42dc3cb7..465f760b 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -53,7 +53,7 @@ drm_intel_bo * gem_handle_to_libdrm_bo(drm_intel_bufmgr *bufmgr, int fd, /* ioctl_wrappers.c: * * ioctl wrappers and similar stuff for bare metal testing */ -void gem_get_tiling(int fd, uint32_t handle, uint32_t *tiling, uint32_t *swizzle); +bool gem_get_tiling(int fd, uint32_t handle, uint32_t *tiling, uint32_t *swizzle); void gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride); int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride); -- cgit v1.2.3