Instead of specifying the tiling on the texture descriptor, Valhall specifies it
on the plane descriptor. There is a new flag on the texture descriptor
specifying only whether the planes are interleaved or not.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15204>
else
cfg.sample_count = layout->nr_samples;
cfg.swizzle = swizzle;
+#if PAN_ARCH >= 9
+ cfg.texel_interleave =
+ (layout->modifier != DRM_FORMAT_MOD_LINEAR) ||
+ util_format_is_compressed(format);
+#else
cfg.texel_ordering =
panfrost_modifier_to_layout(layout->modifier);
+#endif
cfg.levels = iview->last_level - iview->first_level + 1;
cfg.array_size = array_size;