From: Boris Brezillon Date: Thu, 6 Jun 2019 16:44:09 +0000 (+0200) Subject: panfrost: Report sRGB colorspace as not supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d661a4ef9f8e57ccffb0cbca0e7bffd8b637625;p=mesa.git 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 --- 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;