projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ca2d1
)
freedreno/a4xx: add missing SNORM formats to help tests pass
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 21 Nov 2021 18:38:00 +0000
(13:38 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 22 Nov 2021 17:18:56 +0000
(17:18 +0000)
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 <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13904>
src/gallium/drivers/freedreno/a4xx/fd4_format.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a4xx/fd4_format.c
b/src/gallium/drivers/freedreno/a4xx/fd4_format.c
index
fb97d36
..
c2e7e97
100644
(file)
--- 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),