Mesa (main): freedreno/a4xx: add missing SNORM formats to help tests pass
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 22 17:42:00 UTC 2021
Module: Mesa
Branch: main
Commit: 5a69f34aeb617ed97f887aabb7b31f34a979291c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a69f34aeb617ed97f887aabb7b31f34a979291c
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Nov 21 13:38:00 2021 -0500
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 at ext_texture_snorm@fbo-blending-formats.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13904>
---
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),
More information about the mesa-commit
mailing list