Create command pool with command buffer reset in RT tests
authorMohankumar Nekkarakalaya <mnekkara@qti.qualcomm.com>
Tue, 9 Nov 2021 17:56:08 +0000 (09:56 -0800)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 7 Jan 2022 17:11:10 +0000 (12:11 -0500)
-When command pool was created either command buffer reset
 bit should have been set or command buffer should have
 reset pool before using for VU.
-Fix is to create command pool with reset bit set.

Components: Vulkan

VK-GL-CTS Issue: 3288

Affected tests: dEQP-VK.ray_tracing_pipeline.acceleration_structures.device_compability_khr.*

Change-Id: Ie21926cd53c505e46da0d03a6082e689d45d5d2a

external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp

index 13dbeb6..0ef27c1 100644 (file)
@@ -2470,7 +2470,7 @@ tcu::TestStatus RayTracingDeviceASCompabilityKHRTestInstance::iterate (void)
        const VkQueue                                   queue                           = m_context.getUniversalQueue();
        Allocator&                                              allocator                       = m_context.getDefaultAllocator();
 
-       const Move<VkCommandPool>               cmdPool                         = createCommandPool(vkd, device, 0, queueFamilyIndex);
+       const Move<VkCommandPool>               cmdPool                         = createCommandPool(vkd, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex);
        const Move<VkCommandBuffer>             cmdBuffer                       = allocateCommandBuffer(vkd, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
 
        bool                                                    result                          = false;