summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-06 17:01:48 -0600
committerBrian Paul <[email protected]>2011-10-11 07:47:25 -0600
commit6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1 (patch)
tree0199cea7456cf6e12c30c84a48b5c16adb46a1f0 /src
parent11938c87a3e5a5b0a16b22f1913567a64015a92d (diff)
llvmpipe: don't support rendering to sRGB surfaces
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34199
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c3
1 files changed, 2 insertions, 1 deletions
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)