]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/vma: Add helpers to check GTT view type
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Apr 2026 15:50:48 +0000 (18:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Apr 2026 10:28:05 +0000 (13:28 +0300)
commit7cefb6ab03f709fe72dbcee32a0995b62a2b2bd5
tree612f6595d05e5a26488a1050fbac03f15495d9c3
parent8910a07b10d33fc16a7d9e91a5375d7f79c97773
drm/i915/vma: Add helpers to check GTT view type

I915_GTT_VIEW_ROTATED is going away and being replaced by just
I915_GTT_VIEW_REMAPPED, so we're going to need another way to
determine if the view is rotated or not (since width/height
will need to be swapped when operating on the destination
coordinate space). Provide small helper functions to hide
such implementation details from most of the code using GTT views.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260407155053.32156-8-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gtt_view_types.h