[Mesa-dev] [PATCH 1/5] radv: Free empty_cs on device destruction.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Mon Feb 20 08:46:33 UTC 2017


Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
 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 7900ece9c89..4ec62a73585 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -990,6 +990,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.11.1



More information about the mesa-dev mailing list