Mesa (main): freedreno/a6xx: Add int/scaled/snorm vertex formats to match turnip.

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


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

Author: Emma Anholt <emma at anholt.net>
Date:   Fri Sep 24 14:18:18 2021 -0700

freedreno/a6xx: Add int/scaled/snorm vertex formats to match turnip.

Noticed because the vertex formats didn't match up between the two.  GL
doesn't actually look for these vertex formats, though.

Having these marked as supporting texture or color could theoretically
change things I think.

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

---

 src/freedreno/fdl/fd6_format_table.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/freedreno/fdl/fd6_format_table.c b/src/freedreno/fdl/fd6_format_table.c
index f550dc6bfcb..1b080b58506 100644
--- a/src/freedreno/fdl/fd6_format_table.c
+++ b/src/freedreno/fdl/fd6_format_table.c
@@ -170,6 +170,11 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
    _TC(B8G8R8X8_UNORM,   8_8_8_8_UNORM,         WXYZ),
    VTC(B8G8R8A8_SRGB,    8_8_8_8_UNORM,         WXYZ),
    _TC(B8G8R8X8_SRGB,    8_8_8_8_UNORM,         WXYZ),
+   VTC(B8G8R8A8_SNORM,   8_8_8_8_SNORM,         WXYZ),
+   VTC(B8G8R8A8_UINT,    8_8_8_8_UINT,          WXYZ),
+   VTC(B8G8R8A8_SINT,    8_8_8_8_SINT,          WXYZ),
+   V__(B8G8R8A8_USCALED, 8_8_8_8_UINT,          WXYZ),
+   V__(B8G8R8A8_SSCALED, 8_8_8_8_SINT,          WXYZ),
 
    VTC(A8B8G8R8_UNORM,   8_8_8_8_UNORM,         XYZW),
    _TC(X8B8G8R8_UNORM,   8_8_8_8_UNORM,         XYZW),
@@ -187,7 +192,9 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
    V__(R10G10B10A2_SNORM,   10_10_10_2_SNORM,   WZYX),
    V__(B10G10R10A2_SNORM,   10_10_10_2_SNORM,   WXYZ),
    VTC(R10G10B10A2_UINT,    10_10_10_2_UINT,    WZYX),
+   V__(R10G10B10A2_SINT,    10_10_10_2_SINT,    WZYX),
    VTC(B10G10R10A2_UINT,    10_10_10_2_UINT,    WXYZ),
+   V__(B10G10R10A2_SINT,    10_10_10_2_SINT,    WXYZ),
    V__(R10G10B10A2_USCALED, 10_10_10_2_UINT,    WZYX),
    V__(B10G10R10A2_USCALED, 10_10_10_2_UINT,    WXYZ),
    V__(R10G10B10A2_SSCALED, 10_10_10_2_SINT,    WZYX),



More information about the mesa-commit mailing list