softpipe: compressed formats can't be render targets

This commit is contained in:
Brian Paul
2010-04-23 18:09:43 -06:00
parent b806f2a239
commit 1a4383cd42

View File

@@ -159,6 +159,9 @@ softpipe_is_format_supported( struct pipe_screen *screen,
case PIPE_FORMAT_DXT1_RGBA:
case PIPE_FORMAT_DXT3_RGBA:
case PIPE_FORMAT_DXT5_RGBA:
if (tex_usage & PIPE_BIND_RENDER_TARGET)
return FALSE;
else
return util_format_s3tc_enabled;
case PIPE_FORMAT_Z32_FLOAT: