Mesa (master): svga: dimension the dirty[] array with SVGA_STATE_MAX

Brian Paul brianp at kemper.freedesktop.org
Thu Feb 17 00:16:20 UTC 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb 15 13:24:21 2011 -0700

svga: dimension the dirty[] array with SVGA_STATE_MAX

---

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

diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 37ca417..106ea8d 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -35,6 +35,8 @@
 
 #include "tgsi/tgsi_scan.h"
 
+#include "svga_state.h"
+
 
 #define SVGA_TEX_UNITS 8
 #define SVGA_MAX_POINTSIZE 80.0
@@ -342,7 +344,7 @@ struct svga_context
    struct util_bitmask *vs_bm;
 
    struct {
-      unsigned dirty[4];
+      unsigned dirty[SVGA_STATE_MAX];
 
       unsigned texture_timestamp;
 




More information about the mesa-commit mailing list