mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
gallium: replace loop w/ memset in draw_vertex_cache_invalidate()
This commit is contained in:
parent
1603a33fb2
commit
42d38ac02f
1 changed files with 1 additions and 9 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue