summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-03-19 09:37:47 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-03-19 09:37:47 +0000
commit5cda1f01a1a63da6b14edc23142f074fd41e65ff (patch)
treed321379c63743dc3ecde95005af7dc9050f25846
parentcb38064de93563f60e5d6c4f9b0e567da9dc36e6 (diff)
clear state offsets, sizes after cache clear
-rw-r--r--src/mesa/drivers/dri/i915tex/i915_cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i915_cache.c b/src/mesa/drivers/dri/i915tex/i915_cache.c
index 574e96a216..f3595762db 100644
--- a/src/mesa/drivers/dri/i915tex/i915_cache.c
+++ b/src/mesa/drivers/dri/i915tex/i915_cache.c
@@ -321,8 +321,12 @@ void i915_clear_caches( struct i915_cache_context *cctx )
{
GLint i;
- for (i = 0; i < I915_MAX_CACHE; i++)
+ for (i = 0; i < I915_MAX_CACHE; i++) {
clear_cache(&cctx->cache[i]);
+
+ cctx->i915->current.offsets[i] = 0;
+ cctx->i915->current.sizes[i] = 0;
+ }
}