radv: Free empty_cs on device destruction.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 20 Feb 2017 01:22:39 +0000 (02:22 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 21 Feb 2017 08:18:50 +0000 (09:18 +0100)
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 3d0e742..222fc7a 100644 (file)
@@ -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);