mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
radv: Initialize shader freelist on allocation
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25496>
This commit is contained in:
parent
a43ee1ca50
commit
a0fba17311
1 changed files with 2 additions and 0 deletions
|
|
@ -1182,6 +1182,8 @@ radv_alloc_shader_memory(struct radv_device *device, uint32_t size, bool replaya
|
|||
|
||||
alloc =
|
||||
insert_block(device, list_entry(arena->entries.next, union radv_shader_arena_block, list), 0, size, free_list);
|
||||
alloc->freelist.prev = NULL;
|
||||
alloc->freelist.next = ptr;
|
||||
|
||||
++device->shader_arena_shift;
|
||||
list_addtail(&arena->list, &device->shader_arenas);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue