Prevent leaking extra fences
authorAustin Shafer <ashafer@nvidia.com>
Mon, 15 Jun 2020 22:58:03 +0000 (15:58 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 2 Jul 2020 08:45:56 +0000 (04:45 -0400)
These tests create fences, which are then overwritten and leaked
by calls to extension functions. i.e. registering a device event
creates a new fence, so the test should not create a fence and
pass it to registerDeviceEventEXT.

Affects:
- dEQP-VK.wsi.display_control.register_display_event
- dEQP-VK.wsi.display_control.register_device_event

VK-GL-CTS issue: 2427
Components: Vulkan

Change-Id: I2e20c13ff600429e495e98f8ff84722f298822ad

external/vulkancts/modules/vulkan/wsi/vktWsiDisplayControlTests.cpp

index 77ee36b..778a1a8 100644 (file)
@@ -1046,9 +1046,6 @@ tcu::TestStatus testDisplayEvent(Context& context)
        const DeviceInterface&  vkd             = context.getDeviceInterface();
        std::vector<VkFence>    fences  = std::vector<VkFence>(availableDisplays.size(), (VkFence)0);
 
-       // create fence for each display
-       initFences(vkd, device, fences);
-
        // iterate over all displays
        for (size_t i = 0 ; i < availableDisplays.size() ; ++i)
        {
@@ -1081,9 +1078,6 @@ tcu::TestStatus testDeviceEvent(Context& context)
        const DeviceInterface&  vkd = context.getDeviceInterface();
        std::vector<VkFence>    fences = std::vector<VkFence>(1, (VkFence)0);
 
-       // create fence
-       initFences(vkd, device, fences);
-
        vk::VkDeviceEventInfoEXT deviceEventInfo =
        {
                VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT,