mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
zink: alloc bo ids for non-slab bos too
this otherwise breaks perf for buffer lists and triggers full walks on every lookup Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33848>
This commit is contained in:
parent
4d0f79a398
commit
c83d459225
1 changed files with 1 additions and 0 deletions
|
|
@ -326,6 +326,7 @@ bo_create_internal(struct zink_screen *screen,
|
|||
bo->base.vtbl = &bo_vtbl;
|
||||
bo->base.base.placement = mem_type_idx;
|
||||
bo->base.base.usage = flags;
|
||||
bo->unique_id = p_atomic_inc_return(&screen->pb.next_bo_unique_id);
|
||||
|
||||
return bo;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue