From d432f462c28b60e1b1a2bcb4e17bbda0ea316d2a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 15 Feb 2011 13:24:21 -0700 Subject: svga: dimension the dirty[] array with SVGA_STATE_MAX --- src/gallium/drivers/svga/svga_context.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium') 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; -- cgit v1.2.3