Destroy deferred ops before destroying devices
authorRicardo Garcia <rgarcia@igalia.com>
Fri, 30 Oct 2020 14:04:56 +0000 (15:04 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 7 Dec 2020 13:40:52 +0000 (08:40 -0500)
commitac416a7b17a7ea8c202b5f964165f72301cbd1d0
treefc7616fdb025107289085a32b020f2e738087bb3
parent64676f3ed52018f0959e00aff3976cf65fe8d1fc
Destroy deferred ops before destroying devices

Many ray tracing tests were creating deferred operations with
vkCreateDeferredOperationKHR but not destroying them after being used. To fix
that, operations are created using the createDeferredOperationsKHR wrapper that
returns vk::Move objects.

Affected tests:
dEQP-VK.ray_tracing_pipeline.pipeline_library.*_dho*
dEQP-VK.ray_tracing_pipeline.build.cpuht_*
dEQP-VK.ray_tracing_pipeline.large_shader_set.cpu_ht.*
dEQP-VK.ray_query.acceleration_structures.*.cpu_built.*
dEQP-VK.ray_tracing_pipeline.*.cpu_built.*

Components: Vulkan
VK-GL-CTS issue: 2639

Change-Id: I0ce4e18548fdcf93e3363754c534b1dd6676aed9
(cherry picked from commit 75334af0029ec95fea2f7eaee2d79a07b5473a82)
external/vulkancts/framework/vulkan/vkRayTracingUtil.cpp