Mesa (master): softpipe: compressed formats can't be render targets

Brian Paul brianp at kemper.freedesktop.org
Sat Apr 24 00:13:40 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Apr 23 18:09:43 2010 -0600

softpipe: compressed formats can't be render targets

---

 src/gallium/drivers/softpipe/sp_screen.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 52ccb32..8406aa1 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -159,7 +159,10 @@ softpipe_is_format_supported( struct pipe_screen *screen,
    case PIPE_FORMAT_DXT1_RGBA:
    case PIPE_FORMAT_DXT3_RGBA:
    case PIPE_FORMAT_DXT5_RGBA:
-      return util_format_s3tc_enabled;
+      if (tex_usage & PIPE_BIND_RENDER_TARGET)
+         return FALSE;
+      else
+         return util_format_s3tc_enabled;
 
    case PIPE_FORMAT_Z32_FLOAT:
    case PIPE_FORMAT_NONE:




More information about the mesa-commit mailing list