diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-10-24 07:11:11 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-07 12:42:01 -0500 |
commit | 70f2f5c70440feff01d9ba7c8b4432eb72bd69eb (patch) | |
tree | 5458fc2d3b963654130a4fc684daa036fefbceff /include/uapi/drm | |
parent | c826c4493851913e57dd47a7fbfe07156ac9f91d (diff) |
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>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/i915_drm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index ff57f07c3249..2ec0efcaa719 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h | |||
@@ -876,6 +876,12 @@ struct drm_i915_gem_get_tiling { | |||
876 | * mmap mapping. | 876 | * mmap mapping. |
877 | */ | 877 | */ |
878 | __u32 swizzle_mode; | 878 | __u32 swizzle_mode; |
879 | |||
880 | /** | ||
881 | * Returned address bit 6 swizzling required for CPU access through | ||
882 | * mmap mapping whilst bound. | ||
883 | */ | ||
884 | __u32 phys_swizzle_mode; | ||
879 | }; | 885 | }; |
880 | 886 | ||
881 | struct drm_i915_gem_get_aperture { | 887 | struct drm_i915_gem_get_aperture { |