mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
anv/allocator: Assert that we have a valid gem handle in bo_pool_alloc
This commit is contained in:
parent
84e946380b
commit
caf67bb12f
1 changed files with 1 additions and 0 deletions
|
|
@ -831,6 +831,7 @@ anv_bo_pool_alloc(struct anv_bo_pool *pool, struct anv_bo *bo, uint32_t size)
|
||||||
if (anv_ptr_free_list_pop(&pool->free_list[bucket], &next_free_void)) {
|
if (anv_ptr_free_list_pop(&pool->free_list[bucket], &next_free_void)) {
|
||||||
struct bo_pool_bo_link *next_free = next_free_void;
|
struct bo_pool_bo_link *next_free = next_free_void;
|
||||||
*bo = VG_NOACCESS_READ(&next_free->bo);
|
*bo = VG_NOACCESS_READ(&next_free->bo);
|
||||||
|
assert(bo->gem_handle);
|
||||||
assert(bo->map == next_free);
|
assert(bo->map == next_free);
|
||||||
assert(size <= bo->size);
|
assert(size <= bo->size);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue