Module: Mesa
Branch: main
Commit: 269b4dec9e9c1f284ec252aaf55ca87fba2a78da
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=269b4dec9e9c1f284ec252aaf55ca87fba2a78da

Author: Ilia Mirkin <[email protected]>
Date:   Fri Nov 12 01:51:43 2021 -0500

nv50,nvc0: expose R8/RG8_SRGB formats for texturing

This enables the GL_EXT_texture_sRGB_R8/RG8 extensions.

Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13769>

---

 src/gallium/drivers/nouveau/nv50/nv50_formats.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_formats.c 
b/src/gallium/drivers/nouveau/nv50/nv50_formats.c
index 0a693d7b173..149210b3eb0 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_formats.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_formats.c
@@ -344,11 +344,13 @@ 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),
+   F2(A, R8G8_SRGB, NONE, R, G, xx, xx, UNORM, G8R8, T),
 
    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),
    I1(A, R8_SINT, R8_SINT, R, xx, xx, xx, SINT, R8, IR),
    I1(A, R8_UINT, R8_UINT, R, xx, xx, xx, UINT, R8, IR),
+   F1(A, R8_SRGB, NONE, R, xx, xx, xx, UNORM, R8, T),
 
    F3(A, R8G8_B8G8_UNORM, NONE, R, G, B, xx, UNORM, G8B8G8R8, T),
    F3(A, G8R8_B8R8_UNORM, NONE, G, R, B, xx, UNORM, G8B8G8R8, T),

Reply via email to