diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-01 15:16:26 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-01 15:16:26 +0100 |
commit | 2da7ef077a494373904f2e8ad4fcd3885c2bba9b (patch) | |
tree | f184b45e8bb0442196ac12b3935a6dd61f13a076 | |
parent | 6b1a8e0f877c780420ba392cb1e55963507dc5cf (diff) |
llvmpipe: More tweaks to the supported texture formats.
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 3d6c7930a0..5ad581bd17 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -191,14 +191,14 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen, break; } - if(tex_usage & PIPE_TEXTURE_USAGE_RENDER_TARGET) { - if(format_desc->block.width != 1 || - format_desc->block.height != 1) - return FALSE; + if(format_desc->block.width != 1 || + format_desc->block.height != 1) + return FALSE; - if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) - return FALSE; + if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) + return FALSE; + if(tex_usage & PIPE_TEXTURE_USAGE_RENDER_TARGET) { if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB && format_desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB) return FALSE; @@ -228,10 +228,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen, if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB && format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) return FALSE; - - /* not supported yet */ - if (format == PIPE_FORMAT_Z16_UNORM) - return FALSE; } return TRUE; |