llvmpipe: don't support rendering to sRGB surfaces
authorBrian Paul <brianp@vmware.com>
Thu, 6 Oct 2011 23:01:48 +0000 (17:01 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Oct 2011 13:47:25 +0000 (07:47 -0600)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34199

src/gallium/drivers/llvmpipe/lp_screen.c

index 7848d80..1464776 100644 (file)
@@ -249,7 +249,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       return FALSE;
 
    if (bind & PIPE_BIND_RENDER_TARGET) {
-      if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS)
+      if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS ||
+          format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB)
          return FALSE;
 
       if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)