tu: Handle non-identity GMEM swaps for input attachments

I believe nothing currently tests this, but this should be required by
analogy with the previous commit.

Fixes: 247d11d635 ("tu: Allow UBWC with images with swapped formats.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33115>
This commit is contained in:
Connor Abbott 2025-01-21 11:38:25 -05:00 committed by Marge Bot
parent a104a7ca1a
commit 15642c8ec2

View file

@ -1934,7 +1934,9 @@ tu_emit_input_attachments(struct tu_cmd_buffer *cmd,
continue;
/* patched for gmem */
dst[0] &= ~(A6XX_TEX_CONST_0_SWAP__MASK | A6XX_TEX_CONST_0_TILE_MODE__MASK);
dst[0] &= ~A6XX_TEX_CONST_0_TILE_MODE__MASK;
if (!iview->view.is_mutable)
dst[0] &= ~A6XX_TEX_CONST_0_SWAP__MASK;
dst[0] |= A6XX_TEX_CONST_0_TILE_MODE(TILE6_2);
dst[2] =
A6XX_TEX_CONST_2_TYPE(A6XX_TEX_2D) |