Mesa (main): turnip: Give D32_SFLOAT_S8_UINT a native format.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 5 20:44:49 UTC 2021


Module: Mesa
Branch: main
Commit: bfe36ad3f17623e59671a76c3691d13f2a4e53a0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfe36ad3f17623e59671a76c3691d13f2a4e53a0

Author: Emma Anholt <emma at anholt.net>
Date:   Mon Sep 27 11:04:22 2021 -0700

turnip: Give D32_SFLOAT_S8_UINT a native format.

We won't actually use the native format here, as when sampling our image
we we just see the format for either the D or S aspect.  This syncs us up
with freedreno's table, though.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>

---

 src/freedreno/vulkan/tu_formats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c
index abe8929c71d..53367ad6577 100644
--- a/src/freedreno/vulkan/tu_formats.c
+++ b/src/freedreno/vulkan/tu_formats.c
@@ -226,7 +226,7 @@ static const struct tu_native_format tu6_format_table[] = {
    TU6_xTC(S8_UINT,                    8_UINT,                        WZYX), /* 127 */
    TU6_xxx(D16_UNORM_S8_UINT,          X8Z16_UNORM,                   WZYX), /* 128 */
    TU6_xTC(D24_UNORM_S8_UINT,          8_8_8_8_UNORM,                 WZYX), /* 129 */
-   TU6_xTC(D32_SFLOAT_S8_UINT,         NONE,                          WZYX), /* 130 */
+   TU6_xTC(D32_SFLOAT_S8_UINT,         32_FLOAT,                      WZYX), /* 130 */
 
    /* compressed */
    TU6_xTx(BC1_RGB_UNORM_BLOCK,        DXT1,              WZYX), /* 131 */



More information about the mesa-commit mailing list