summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-25 17:22:02 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-25 17:22:56 -0700
commit42d38ac02fff63406cd59914a3eb1e5ad27134d0 (patch)
tree9d77fbbeb4116072c2b185aa488c4b79602903e0 /src/mesa
parent1603a33fb276d7e78a2e872dfa05aa0093d1329a (diff)
gallium: replace loop w/ memset in draw_vertex_cache_invalidate()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/draw/draw_vertex_cache.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_cache.c b/src/mesa/pipe/draw/draw_vertex_cache.c
index b4b4906d70..44427999cc 100644
--- a/src/mesa/pipe/draw/draw_vertex_cache.c
+++ b/src/mesa/pipe/draw/draw_vertex_cache.c
@@ -37,19 +37,11 @@
void draw_vertex_cache_invalidate( struct draw_context *draw )
{
- unsigned i;
-
assert(draw->pq.queue_nr == 0);
assert(draw->vs.queue_nr == 0);
assert(draw->vcache.referenced == 0);
- /* XXX memset() here */
-#if 0
- for (i = 0; i < Elements( draw->vcache.idx ); i++)
- draw->vcache.idx[i] = ~0;
-#else
+
memset(draw->vcache.idx, ~0, sizeof(draw->vcache.idx));
-#endif
-// fprintf(stderr, "x\n");
}