From 5a69f34aeb617ed97f887aabb7b31f34a979291c Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 21 Nov 2021 13:38:00 -0500 Subject: [PATCH] freedreno/a4xx: add missing SNORM formats to help tests pass Otherwise some of these fall back to RGBA_SNORM, which can screw up blend factors. Fixes spec@ext_texture_snorm@fbo-blending-formats. Signed-off-by: Ilia Mirkin Part-of: --- src/gallium/drivers/freedreno/a4xx/fd4_format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_format.c b/src/gallium/drivers/freedreno/a4xx/fd4_format.c index fb97d363c75..c2e7e973b5b 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_format.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_format.c @@ -78,7 +78,9 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = { _T(A8_UNORM, 8_UNORM, A8_UNORM, WZYX), _T(L8_UNORM, 8_UNORM, R8_UNORM, WZYX), + _T(L8_SNORM, 8_SNORM, R8_SNORM, WZYX), _T(I8_UNORM, 8_UNORM, NONE, WZYX), + _T(I8_SNORM, 8_SNORM, NONE, WZYX), _T(A8_UINT, 8_UINT, NONE, WZYX), _T(A8_SINT, 8_SINT, NONE, WZYX),