diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-14 10:59:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-14 10:59:51 +0000 |
commit | d364c280892af29956ad7032b0d242b7d24d7846 (patch) | |
tree | 49f11795a5cfa354fae1b29a1a4055d34bd6e0e4 /tests/gem_fence_thrash.c | |
parent | be7ca950d7d4d18744a76abab091eb032835fb82 (diff) |
configure: Add AC_SYS_LARGEFILE for mmap64 support on 64-bit
Without enabling largefile support the prototype for mmap64() is broken
on Linux/x86_64 with the result being a 32-bit integer sign-extended
to fill a 64-bit pointer. Hilarity ensues.
Diffstat (limited to 'tests/gem_fence_thrash.c')
-rw-r--r-- | tests/gem_fence_thrash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c index 2065ac65..11afba85 100644 --- a/tests/gem_fence_thrash.c +++ b/tests/gem_fence_thrash.c @@ -75,6 +75,7 @@ bo_create (int fd) tiling.stride = 1024; ret = ioctl(fd, DRM_IOCTL_I915_GEM_SET_TILING, &tiling); assert(ret == 0); + assert(tiling.tiling_mode == I915_TILING_X); memset(&mmap_arg, 0, sizeof(mmap_arg)); mmap_arg.handle = handle; |