gallium: enable bug workaround in draw_vertex_cache_invalidate
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Mar 2008 19:37:32 +0000 (19:37 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Mar 2008 23:31:50 +0000 (23:31 +0000)
src/gallium/auxiliary/draw/draw_vertex_cache.c

index 53f8bbec4458223606692b9417a9aae8e2c2c2f4..161b247d4e954449bfdee5aa115dfc84a114fddf 100644 (file)
@@ -41,7 +41,11 @@ void draw_vertex_cache_invalidate( struct draw_context *draw )
    assert(draw->vs.queue_nr == 0);
    assert(draw->vcache.referenced == 0);
 
-//   memset(draw->vcache.idx, ~0, sizeof(draw->vcache.idx));
+   /* There's an error somewhere in the vcache code that requires this
+    * memset.  The bug is exposed in q3demo demo001, but probably
+    * elsewhere as well.  Will track it down later.
+    */
+   memset(draw->vcache.idx, ~0, sizeof(draw->vcache.idx));
 }