From: Brian Paul Date: Thu, 6 Oct 2011 23:01:48 +0000 (-0600) Subject: llvmpipe: don't support rendering to sRGB surfaces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1;p=mesa.git llvmpipe: don't support rendering to sRGB surfaces Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34199 --- diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 7848d80f739..1464776aa06 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -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)