drm/i915: Report the actual swizzling back to userspace
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Oct 2014 11:11:11 +0000 (12:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:01 +0000 (18:42 +0100)
commit70f2f5c70440feff01d9ba7c8b4432eb72bd69eb
tree5458fc2d3b963654130a4fc684daa036fefbceff
parentc826c4493851913e57dd47a7fbfe07156ac9f91d
drm/i915: Report the actual swizzling back to userspace

Userspace cares about whether or not swizzling depends on the page
address for its direct access into bound objects. Extend the get_tiling
ioctl to report the physical swizzling value in addition to the logical
swizzling value so that userspace can accurately determine when it is
possible for manual detiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Akash Goel <akash.goel@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Testcase: igt/gem_tiled_wc
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_tiling.c
include/uapi/drm/i915_drm.h