st/mesa: expose EXT_texture_compression_s3tc_srgb
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 30 Jan 2019 18:48:19 +0000 (10:48 -0800)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 1 Feb 2019 10:01:59 +0000 (10:01 +0000)
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/mesa/state_tracker/st_extensions.c

index 1e456d019d00f02d966826720fffaa2306f893f9..3449b2a964504e10839b2d67ea315d86670d01f1 100644 (file)
@@ -843,6 +843,12 @@ void st_init_extensions(struct pipe_screen *screen,
           PIPE_FORMAT_DXT3_RGBA,
           PIPE_FORMAT_DXT5_RGBA } },
 
+      { { o(EXT_texture_compression_s3tc_srgb) },
+        { PIPE_FORMAT_DXT1_SRGB,
+          PIPE_FORMAT_DXT1_SRGBA,
+          PIPE_FORMAT_DXT3_SRGBA,
+          PIPE_FORMAT_DXT5_SRGBA } },
+
       { { o(ARB_texture_compression_bptc) },
         { PIPE_FORMAT_BPTC_RGBA_UNORM,
           PIPE_FORMAT_BPTC_SRGBA,