Mesa (master): svga: we don't supported 3D compressed textures

Brian Paul brianp at kemper.freedesktop.org
Tue Nov 19 00:41:23 UTC 2013


Module: Mesa
Branch: master
Commit: 21ae5135dd30bbd2ec7d2b44e07b6cb1d6425d9e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=21ae5135dd30bbd2ec7d2b44e07b6cb1d6425d9e

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Nov 18 14:50:33 2013 -0800

svga: we don't supported 3D compressed textures

Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>

---

 src/gallium/drivers/svga/svga_screen.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 3c013ea..ebcad2c 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.
     */




More information about the mesa-commit mailing list