drm/i915: Add tiling attribute to the modifier descriptor
authorImre Deak <imre.deak@intel.com>
Wed, 20 Oct 2021 19:51:30 +0000 (22:51 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 21 Oct 2021 18:44:36 +0000 (21:44 +0300)
commit3dfb2d6b489f7f1a627774f84a6341c18785f43f
treebcacfc319838384530ed350b181afb05ce0fee2f
parent672d07517e728acf15c1e39c3dfb7052000b434e
drm/i915: Add tiling attribute to the modifier descriptor

Add a tiling atttribute to the modifier descriptor, which let's us
get the tiling without listing the modifiers twice.

v1-v2: Unchanged.
v3:
- Initialize .tiling to I915_TILING_NONE explicitly (Ville)
- Move from previous patch lookup_modifier() to here, where it's first
  used.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211020195138.1841242-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c