diff options
author | Brian Paul <[email protected]> | 2011-10-06 17:01:48 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-11 07:47:25 -0600 |
commit | 6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1 (patch) | |
tree | 0199cea7456cf6e12c30c84a48b5c16adb46a1f0 /src | |
parent | 11938c87a3e5a5b0a16b22f1913567a64015a92d (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.c | 3 |
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) |