From: Brian Paul Date: Mon, 18 Nov 2013 22:50:33 +0000 (-0800) Subject: svga: we don't supported 3D compressed textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21ae5135dd30bbd2ec7d2b44e07b6cb1d6425d9e;p=mesa.git svga: we don't supported 3D compressed textures Reviewed-by: Jakob Bornecrantz --- diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 3c013eaec49..ebcad2cf141 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -23,6 +23,7 @@ * **********************************************************/ +#include "util/u_format.h" #include "util/u_memory.h" #include "util/u_inlines.h" #include "util/u_string.h" @@ -446,6 +447,11 @@ svga_is_format_supported( struct pipe_screen *screen, } } + if (target == PIPE_TEXTURE_3D && util_format_is_compressed(format)) { + /* we don't support compressed 3D textures at this time */ + return FALSE; + } + /* * Query the host capabilities. */