From 1573af4138c244febe5c9b06dc7d252a47c824de Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Fri, 24 Sep 2021 14:18:18 -0700 Subject: [PATCH] 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: --- 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),