From 3d661a4ef9f8e57ccffb0cbca0e7bffd8b637625 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 6 Jun 2019 18:44:09 +0200 Subject: panfrost: Report sRGB colorspace as not supported The driver does not support sRGB yet, so let's report it as unsupported. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_screen.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/panfrost') diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index c956ba439fa..06d89c9bc51 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -447,6 +447,10 @@ panfrost_is_format_supported( struct pipe_screen *screen, if (sample_count > 1) return FALSE; + /* sRGB colorspace is not supported (yet?) */ + if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) + return FALSE; + /* Format wishlist */ if (format == PIPE_FORMAT_Z24X8_UNORM || format == PIPE_FORMAT_X8Z24_UNORM) return FALSE; -- cgit v1.2.3