anv/device: Actually free the CPU-side fence struct again
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Mar 2016 22:48:35 +0000 (14:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Mar 2016 22:50:52 +0000 (14:50 -0800)
In 23de78768, when we switched from allocating individual BOs to using the
pool for fences, we accidentally deleted the free.

src/intel/vulkan/anv_device.c

index 8aa1e61acad4871c9f5a6e54773094cd3f936146..816f780c6ffd102c77318b962f43281d4cf0af63 100644 (file)
@@ -1454,6 +1454,7 @@ void anv_DestroyFence(
    ANV_FROM_HANDLE(anv_fence, fence, _fence);
 
    anv_bo_pool_free(&device->batch_bo_pool, &fence->bo);
+   anv_free2(&device->alloc, pAllocator, fence);
 }
 
 VkResult anv_ResetFences(