diff options
author | keithw <keithw@keithw-laptop.(none)> | 2007-10-25 10:18:52 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2007-10-25 10:21:52 +0100 |
commit | 731352f03ee998050331104d90abb47ee1377b3f (patch) | |
tree | 7adbf91afb05580b52c775ba994ff0ad4e5c33db | |
parent | 5022ee43fc7916f16bdce8b076bad78fca262a62 (diff) |
set vcache.referenced bit always
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_cache.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_cache.c b/src/mesa/pipe/draw/draw_vertex_cache.c index 56a4c34df5..511f371ac8 100644 --- a/src/mesa/pipe/draw/draw_vertex_cache.c +++ b/src/mesa/pipe/draw/draw_vertex_cache.c @@ -68,13 +68,8 @@ static struct vertex_header *get_vertex( struct draw_context *draw, /* If slot is in use, use the overflow area: */ if (draw->vcache.referenced & (1 << slot)) { -// fprintf(stderr, "o"); slot = VCACHE_SIZE + draw->vcache.overflow++; } - else { -// fprintf(stderr, "."); - draw->vcache.referenced |= (1 << slot); /* slot now in use */ - } assert(slot < Elements(draw->vcache.idx)); @@ -95,16 +90,13 @@ static struct vertex_header *get_vertex( struct draw_context *draw, draw->vcache.vertex[slot]->pad = 0; draw->vcache.vertex[slot]->vertex_id = ~0; } - else { -// fprintf(stderr, "*"); - /* primitive flushing may have cleared the bitfield but did not - * clear the idx[] array values. Set the bit now. This fixes a - * bug found when drawing long triangle fans. - */ - draw->vcache.referenced |= (1 << slot); - } + /* primitive flushing may have cleared the bitfield but did not + * clear the idx[] array values. Set the bit now. This fixes a + * bug found when drawing long triangle fans. + */ + draw->vcache.referenced |= (1 << slot); return draw->vcache.vertex[slot]; } |