Mesa (master): svga: defined QSZ in terms of SVGA3D_MAX_DRAW_PRIMITIVE_RANGES

Brian Paul brianp at kemper.freedesktop.org
Wed Apr 13 08:52:55 PDT 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Apr 13 09:50:48 2011 -0600

svga: defined QSZ in terms of SVGA3D_MAX_DRAW_PRIMITIVE_RANGES

---

 src/gallium/drivers/svga/svga_draw_private.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_draw_private.h b/src/gallium/drivers/svga/svga_draw_private.h
index 11afb59..ca658ac 100644
--- a/src/gallium/drivers/svga/svga_draw_private.h
+++ b/src/gallium/drivers/svga/svga_draw_private.h
@@ -93,7 +93,9 @@ struct index_cache {
    struct pipe_resource *buffer;
 };
 
-#define QSZ 32
+
+/** Max number of primitives per draw call */
+#define QSZ SVGA3D_MAX_DRAW_PRIMITIVE_RANGES
 
 struct draw_cmd {
    struct svga_winsys_context *swc;



More information about the mesa-commit mailing list