From: Kenneth Graunke Date: Wed, 24 Apr 2019 20:24:18 +0000 (-0700) Subject: iris: Advertise EXT_texture_sRGB_R8 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2812ef2a26f4ab87d068092b1a6fa7c0dcc58202;p=mesa.git iris: Advertise EXT_texture_sRGB_R8 support Using the luminance format, like both brw and anv do. --- diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c index ec7fd77f3a9..91a5e9e5982 100644 --- a/src/gallium/drivers/iris/iris_formats.c +++ b/src/gallium/drivers/iris/iris_formats.c @@ -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,