iris: Advertise EXT_texture_sRGB_R8 support
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Apr 2019 20:24:18 +0000 (13:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Apr 2019 23:49:13 +0000 (16:49 -0700)
Using the luminance format, like both brw and anv do.

src/gallium/drivers/iris/iris_formats.c

index ec7fd77f3a95e66ebb1914ee8d45c2d3dfd8163d..91a5e9e5982d312f68d155f76ec4f9ecb9469d66 100644 (file)
@@ -212,6 +212,7 @@ iris_isl_format_for_pipe_format(enum pipe_format pf)
       [PIPE_FORMAT_L32A32_FLOAT]            = ISL_FORMAT_R32G32_FLOAT,
 
       /* Sadly, we have to use luminance[-alpha] formats for sRGB decoding. */
+      [PIPE_FORMAT_R8_SRGB]                 = ISL_FORMAT_L8_UNORM_SRGB,
       [PIPE_FORMAT_L8_SRGB]                 = ISL_FORMAT_L8_UNORM_SRGB,
       [PIPE_FORMAT_L8A8_SRGB]               = ISL_FORMAT_L8A8_UNORM_SRGB,