igt/gem_tiled_wc: Exercise wc mmaps with swizzling

This exercises both the wc mmappings and the extended get_tiling ioctl.
Userspace cannot handle bit17 swizzling through wc mmaps (because bit17
requires swizzling based on the actual physical address of the page -
which is unknown to userspace) and so we need an extended get_tiling
ioctl to report the actual as well as the logical swizzling on an
object. We then check that the contents of the object are tiled and
swizzled correctly when viewed through a wc mmap.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Chris Wilson
2015-01-02 16:33:30 +05:30
committed by Daniel Vetter
parent a464fb758e
commit e70c789909
3 changed files with 239 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ gem_tiled_pread
gem_tiled_pread_pwrite
gem_tiled_swapping
gem_tiled_wb
gem_tiled_wc
gem_tiling_max_stride
gem_unfence_active_buffers
gem_unref_active_buffers