mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
set vcache.referenced bit always
This commit is contained in:
parent
5022ee43fc
commit
731352f03e
1 changed files with 5 additions and 13 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue