From 6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Oct 2011 17:01:48 -0600 Subject: [PATCH] llvmpipe: don't support rendering to sRGB surfaces Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34199 --- src/gallium/drivers/llvmpipe/lp_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2