[Mesa-dev] [PATCH] panfrost: Report sRGB colorspace as not supported

Boris Brezillon boris.brezillon at collabora.com
Thu Jun 6 16:44:09 UTC 2019


The driver does not support sRGB yet, so let's report it as unsupported.

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
---
 src/gallium/drivers/panfrost/pan_screen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 3ffd86ef08e0..00a5586ff5a2 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;
-- 
2.20.1



More information about the mesa-dev mailing list