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:
Mike Blumenkrantz 2025-02-13 12:18:32 -05:00 committed by Marge Bot
parent 4d0f79a398
commit c83d459225

View file

@ -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;