Mesa (master): llvmpipe: don't support rendering to sRGB surfaces

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 11 06:48:41 PDT 2011


Module: Mesa
Branch: master
Commit: 6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Oct  6 17:01:48 2011 -0600

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 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 7848d80..1464776 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)



More information about the mesa-commit mailing list