panfrost: Enable sRGB
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 17 Jun 2019 23:23:41 +0000 (16:23 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Jun 2019 16:59:29 +0000 (09:59 -0700)
Now that sRGB formats are supported for both rendering and sampling,
advertise support.

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

index 9cd98cd90510f3f7f9e826073e4a4e71d9d7889c..70bff565930fd5d2d37f0dd7a236a0274e52928b 100644 (file)
@@ -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;