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:
897a7fb
)
nvc0: disable EXT_texture_sRGB_RG8
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Wed, 2 Mar 2022 04:38:31 +0000
(23:38 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 3 Mar 2022 04:37:12 +0000
(
04:37
+0000)
Looks like the green component doesn't get srgb-decoding, and no obvious
way to force it. It works fine on nv50 though.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15211>
src/gallium/drivers/nouveau/nv50/nv50_formats.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nv50/nv50_formats.c
b/src/gallium/drivers/nouveau/nv50/nv50_formats.c
index
149210b
..
f0771cd
100644
(file)
--- a/
src/gallium/drivers/nouveau/nv50/nv50_formats.c
+++ b/
src/gallium/drivers/nouveau/nv50/nv50_formats.c
@@
-344,7
+344,10
@@
const struct nv50_format nv50_format_table[PIPE_FORMAT_COUNT] =
F2(A, R8G8_SNORM, RG8_SNORM, R, G, xx, xx, SNORM, G8R8, IC),
I2(A, R8G8_SINT, RG8_SINT, R, G, xx, xx, SINT, G8R8, IR),
I2(A, R8G8_UINT, RG8_UINT, R, G, xx, xx, UINT, G8R8, IR),
+#if NOUVEAU_DRIVER < 0xc0
+ /* On Fermi+, the green component doesn't get decoding? */
F2(A, R8G8_SRGB, NONE, R, G, xx, xx, UNORM, G8R8, T),
+#endif
F1(A, R8_UNORM, R8_UNORM, R, xx, xx, xx, UNORM, R8, IB),
F1(A, R8_SNORM, R8_SNORM, R, xx, xx, xx, SNORM, R8, IC),