zink: Enable GL_EXT_texture_sRGB_R8
authorAdam Jackson <ajax@redhat.com>
Wed, 16 Dec 2020 22:53:49 +0000 (17:53 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 4 Jan 2021 21:19:35 +0000 (21:19 +0000)
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8060>

src/gallium/drivers/zink/zink_format.c

index e5a85c9..093562f 100644 (file)
@@ -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)