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

Author: Brian Paul <[email protected]>
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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to