panfrost: Report sRGB colorspace as not supported
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 6 Jun 2019 16:44:09 +0000 (18:44 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 6 Jun 2019 20:41:54 +0000 (13:41 -0700)
The driver does not support sRGB yet, so let's report it as unsupported.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_screen.c

index c956ba439fae485171460c14cdbb0367921b5d9e..06d89c9bc519afff9676f7544299a58dbdae02b3 100644 (file)
@@ -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;