summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-10-26 22:57:19 -0700
committerJason Ekstrand <[email protected]>2016-10-27 13:45:39 -0700
commitcaf67bb12fce94e00cf2c158c88cefab26b07af9 (patch)
tree62f697266034f3177dfa86a7749ad7676ede1408 /src
parent84e946380b2d5ddc62a107b667be39abf1932704 (diff)
anv/allocator: Assert that we have a valid gem handle in bo_pool_alloc
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_allocator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c
index ae18f8e3837..36cabd721bc 100644
--- a/src/intel/vulkan/anv_allocator.c
+++ b/src/intel/vulkan/anv_allocator.c
@@ -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)) {
struct bo_pool_bo_link *next_free = next_free_void;
*bo = VG_NOACCESS_READ(&next_free->bo);
+ assert(bo->gem_handle);
assert(bo->map == next_free);
assert(size <= bo->size);