From: Bas Nieuwenhuizen Date: Mon, 20 Feb 2017 01:22:39 +0000 (+0100) Subject: radv: Free empty_cs on device destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6e0df2edd71b56aa1c4a6faacfde3f117a76b30;p=mesa.git radv: Free empty_cs on device destruction. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 3d0e74273e4..222fc7ae77a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -993,6 +993,8 @@ void radv_DestroyDevice( radv_queue_finish(&device->queues[i][q]); if (device->queue_count[i]) vk_free(&device->alloc, device->queues[i]); + if (device->empty_cs[i]) + device->ws->cs_destroy(device->empty_cs[i]); } radv_device_finish_meta(device);