mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
gallium: in sp_tile_cache_clear() mark all cache slots as empty/free. Fixes progs/redbook/stencil.c
This commit is contained in:
parent
336e2cb9ec
commit
1cf3c77e08
1 changed files with 6 additions and 0 deletions
|
|
@ -538,6 +538,7 @@ void
|
|||
sp_tile_cache_clear(struct softpipe_tile_cache *tc, uint clearValue)
|
||||
{
|
||||
uint r, g, b, a;
|
||||
uint pos;
|
||||
|
||||
tc->clear_val = clearValue;
|
||||
|
||||
|
|
@ -576,4 +577,9 @@ sp_tile_cache_clear(struct softpipe_tile_cache *tc, uint clearValue)
|
|||
/* disable the optimization */
|
||||
memset(tc->clear_flags, 0, sizeof(tc->clear_flags));
|
||||
#endif
|
||||
|
||||
for (pos = 0; pos < NUM_ENTRIES; pos++) {
|
||||
struct softpipe_cached_tile *tile = tc->entries + pos;
|
||||
tile->x = tile->y = -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue