mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
panfrost: Set texel_interleave on Valhall
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>
This commit is contained in:
parent
407bda4d8c
commit
30d0c2e390
1 changed files with 6 additions and 0 deletions
|
|
@ -768,8 +768,14 @@ GENX(panfrost_new_texture)(const struct panfrost_device *dev,
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue