anv: don't crash on vkDestroyDevice(NULL)
CovID: 1438132
Fixes: a99c9e63a0
"anv: finish the binding_table_pool on
destroyDevice when use_softpin"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
This commit is contained in:
@@ -1833,11 +1833,13 @@ void anv_DestroyDevice(
|
||||
const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_device, device, _device);
|
||||
struct anv_physical_device *physical_device = &device->instance->physicalDevice;
|
||||
struct anv_physical_device *physical_device;
|
||||
|
||||
if (!device)
|
||||
return;
|
||||
|
||||
physical_device = &device->instance->physicalDevice;
|
||||
|
||||
anv_device_finish_blorp(device);
|
||||
|
||||
anv_pipeline_cache_finish(&device->default_pipeline_cache);
|
||||
|
Reference in New Issue
Block a user