From 2812ef2a26f4ab87d068092b1a6fa7c0dcc58202 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 24 Apr 2019 13:24:18 -0700 Subject: [PATCH] iris: Advertise EXT_texture_sRGB_R8 support Using the luminance format, like both brw and anv do. --- src/gallium/drivers/iris/iris_formats.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.30.2