summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-02-20 02:22:39 +0100
committerBas Nieuwenhuizen <[email protected]>2017-02-21 09:18:50 +0100
commitb6e0df2edd71b56aa1c4a6faacfde3f117a76b30 (patch)
tree1b4455844215a529eab00286078d779d87c87569
parent8f4483b6090ce1e6f903dc14094b086d03c8af80 (diff)
radv: Free empty_cs on device destruction.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/amd/vulkan/radv_device.c2
1 files changed, 2 insertions, 0 deletions
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);