gallium: replace loop w/ memset in draw_vertex_cache_invalidate()
authorBrian <brian.paul@tungstengraphics.com>
Sat, 26 Jan 2008 00:22:02 +0000 (17:22 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 26 Jan 2008 00:22:56 +0000 (17:22 -0700)
src/mesa/pipe/draw/draw_vertex_cache.c

index b4b4906d70da6ac76a407e3f274d16bf82b5cc48..44427999ccfb20b585492629e6a6a606f0ef3582 100644 (file)
 
 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");
 }