From: Brian Paul Date: Tue, 15 Feb 2011 20:24:21 +0000 (-0700) Subject: svga: dimension the dirty[] array with SVGA_STATE_MAX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d432f462c28b60e1b1a2bcb4e17bbda0ea316d2a;p=mesa.git svga: dimension the dirty[] array with SVGA_STATE_MAX --- 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;