From b6e0df2edd71b56aa1c4a6faacfde3f117a76b30 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Mon, 20 Feb 2017 02:22:39 +0100 Subject: [PATCH] radv: Free empty_cs on device destruction. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_device.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2