summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-06-06 18:44:09 +0200
committerAlyssa Rosenzweig <[email protected]>2019-06-06 13:41:54 -0700
commit3d661a4ef9f8e57ccffb0cbca0e7bffd8b637625 (patch)
tree0f42afde867f03092847fa772ba5288c13cddec1
parentc0dfe8c6dfd913011d4637a05d93e36a8425dbea (diff)
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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/gallium/drivers/panfrost/pan_screen.c4
1 files changed, 4 insertions, 0 deletions
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;