summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-02-15 13:24:21 -0700
committerBrian Paul <[email protected]>2011-02-16 17:07:02 -0700
commitd432f462c28b60e1b1a2bcb4e17bbda0ea316d2a (patch)
treed61d51173121902cc576e9a656f7378089f6569b /src/gallium/drivers/svga
parente162f28228ed56ff041ae870b96b813a52dd6b54 (diff)
svga: dimension the dirty[] array with SVGA_STATE_MAX
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_context.h4
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 37ca417d2ff..106ea8d0e51 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;