mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
nouveau/mm: move slabs to correct list on memory release
Should get rid of "destroying GPU memory cache with some buffers still in use" message.
This commit is contained in:
parent
210ddf0819
commit
8476232b08
1 changed files with 5 additions and 5 deletions
|
|
@ -210,13 +210,13 @@ nouveau_mm_free(struct nouveau_mm_allocation *alloc)
|
|||
|
||||
mm_slab_free(slab, alloc->offset >> slab->order);
|
||||
|
||||
if (slab->free == slab->count) {
|
||||
LIST_DEL(&slab->head);
|
||||
LIST_ADDTAIL(&slab->head, &bucket->free);
|
||||
} else
|
||||
if (slab->free == 1) {
|
||||
LIST_DEL(&slab->head);
|
||||
|
||||
if (slab->count > 1)
|
||||
LIST_ADDTAIL(&slab->head, &bucket->used);
|
||||
else
|
||||
LIST_ADDTAIL(&slab->head, &bucket->free);
|
||||
LIST_ADDTAIL(&slab->head, &bucket->used);
|
||||
}
|
||||
|
||||
FREE(alloc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue