mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 15:58:06 +02:00
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:
parent
a104a7ca1a
commit
15642c8ec2
1 changed files with 3 additions and 1 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue