projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b806f2a
)
softpipe: compressed formats can't be render targets
author
Brian Paul
<brianp@vmware.com>
Sat, 24 Apr 2010 00:09:43 +0000
(18:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 24 Apr 2010 00:12:24 +0000
(18:12 -0600)
src/gallium/drivers/softpipe/sp_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_screen.c
b/src/gallium/drivers/softpipe/sp_screen.c
index 52ccb32530c9b7e3648cc07a629ab7b2ffb400ad..8406aa1ac3e235d612a273e811f68f497f2c114b 100644
(file)
--- 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: