mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
v3d: Reduce the stale BO reclamation spam with dump_stats set.
This was obviously meant to be when we were actually freeing a BO, not just when there was at least one BO in the list.
This commit is contained in:
parent
5d11094db1
commit
7d6aef6fa5
1 changed files with 5 additions and 6 deletions
|
|
@ -238,14 +238,13 @@ free_stale_bos(struct v3d_screen *screen, time_t time)
|
|||
|
||||
list_for_each_entry_safe(struct v3d_bo, bo, &cache->time_list,
|
||||
time_list) {
|
||||
if (dump_stats && !freed_any) {
|
||||
fprintf(stderr, "Freeing stale BOs:\n");
|
||||
v3d_bo_dump_stats(screen);
|
||||
freed_any = true;
|
||||
}
|
||||
|
||||
/* If it's more than a second old, free it. */
|
||||
if (time - bo->free_time > 2) {
|
||||
if (dump_stats && !freed_any) {
|
||||
fprintf(stderr, "Freeing stale BOs:\n");
|
||||
v3d_bo_dump_stats(screen);
|
||||
freed_any = true;
|
||||
}
|
||||
v3d_bo_remove_from_cache(cache, bo);
|
||||
v3d_bo_free(bo);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue