Mesa (master): zink: Enable GL_EXT_texture_sRGB_R8

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 4 21:37:45 UTC 2021


Module: Mesa
Branch: master
Commit: 089371df1638d22e8eadb684a1c722831a9e95d5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=089371df1638d22e8eadb684a1c722831a9e95d5

Author: Adam Jackson <ajax at redhat.com>
Date:   Wed Dec 16 17:53:49 2020 -0500

zink: Enable GL_EXT_texture_sRGB_R8

Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8060>

---

 src/gallium/drivers/zink/zink_format.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_format.c b/src/gallium/drivers/zink/zink_format.c
index e5a85c9e59d..093562fab28 100644
--- a/src/gallium/drivers/zink/zink_format.c
+++ b/src/gallium/drivers/zink/zink_format.c
@@ -25,6 +25,7 @@ static const VkFormat formats[PIPE_FORMAT_COUNT] = {
    MAP_FORMAT_NORM(R8)
    MAP_FORMAT_SCALED(R8)
    MAP_FORMAT_INT(R8)
+   MAP_FORMAT_SRGB(R8)
    // 16-bits
    MAP_FORMAT_NORM(R16)
    MAP_FORMAT_SCALED(R16)



More information about the mesa-commit mailing list