From 1a4383cd4283fc48f8b70a2692ef5a545b6ab58c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Apr 2010 18:09:43 -0600 Subject: [PATCH] softpipe: compressed formats can't be render targets --- src/gallium/drivers/softpipe/sp_screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 52ccb32530c..8406aa1ac3e 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: -- 2.30.2