Mesa (main): freedreno/a6xx: Set the color_swap field for storage descriptors.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 2 20:16:29 UTC 2022
Module: Mesa
Branch: main
Commit: 71fcb751eba9552044edffbd3db0888323a08a0e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=71fcb751eba9552044edffbd3db0888323a08a0e
Author: Emma Anholt <emma at anholt.net>
Date: Wed Mar 9 10:00:34 2022 -0800
freedreno/a6xx: Set the color_swap field for storage descriptors.
This field does appear to work as expected: with 1D/1DArray turnip storage
images switched to be always linear, it fixes the dEQP-VK.image.*store*
tests using a color swapped format (once we allow color swap).
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15293>
---
src/freedreno/fdl/fd6_view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/freedreno/fdl/fd6_view.c b/src/freedreno/fdl/fd6_view.c
index 0c65e6cd3b0..b6dce31c22b 100644
--- a/src/freedreno/fdl/fd6_view.c
+++ b/src/freedreno/fdl/fd6_view.c
@@ -342,7 +342,8 @@ fdl6_view_init(struct fdl6_view *view, const struct fdl_layout **layouts,
view->storage_descriptor[0] =
A6XX_TEX_CONST_0_FMT(storage_format) |
fdl6_texswiz(args, has_z24uint_s8uint) |
- A6XX_TEX_CONST_0_TILE_MODE(tile_mode);
+ A6XX_TEX_CONST_0_TILE_MODE(tile_mode) |
+ A6XX_TEX_CONST_0_SWAP(color_swap);
view->storage_descriptor[1] = view->descriptor[1];
view->storage_descriptor[2] =
A6XX_TEX_CONST_2_PITCH(pitch) |
More information about the mesa-commit
mailing list