summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_screen.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-23 18:09:43 -0600
committerBrian Paul <brianp@vmware.com>2010-04-23 18:12:24 -0600
commit1a4383cd4283fc48f8b70a2692ef5a545b6ab58c (patch)
treef21266772b39c22795e6f967326df40c872ea5ac /src/gallium/drivers/softpipe/sp_screen.c
parentb806f2a2397bb0b76f804bb0af4e0eb299b15907 (diff)
softpipe: compressed formats can't be render targets
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c5
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 52ccb32530..8406aa1ac3 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: