[Mesa-dev] [PATCH 9/9] panfrost: Enable sRGB

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Tue Jun 18 14:59:53 UTC 2019


Now that sRGB formats are supported for both rendering and sampling,
advertise support.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/pan_screen.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 9cd98cd9051..70bff565930 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -450,10 +450,6 @@ 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