summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-04-24 13:24:18 -0700
committerKenneth Graunke <[email protected]>2019-04-24 16:49:13 -0700
commit2812ef2a26f4ab87d068092b1a6fa7c0dcc58202 (patch)
treedacf4f84b9077b1fc1e76143e858c7f9c73ffca5 /src/gallium/drivers/iris
parent59aa7c924d88cf8c7a8f64bcb25f358eab30d713 (diff)
iris: Advertise EXT_texture_sRGB_R8 support
Using the luminance format, like both brw and anv do.
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_formats.c1
1 files changed, 1 insertions, 0 deletions
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,