From 91ac7456cd31f6a2d34e6dbcfb66fa7363a73db9 Mon Sep 17 00:00:00 2001 From: Mohankumar Nekkarakalaya Date: Tue, 9 Nov 2021 09:56:08 -0800 Subject: [PATCH] Create command pool with command buffer reset in RT tests -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 --- .../vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp index 13dbeb6..0ef27c1 100644 --- a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp +++ b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp @@ -2470,7 +2470,7 @@ tcu::TestStatus RayTracingDeviceASCompabilityKHRTestInstance::iterate (void) const VkQueue queue = m_context.getUniversalQueue(); Allocator& allocator = m_context.getDefaultAllocator(); - const Move cmdPool = createCommandPool(vkd, device, 0, queueFamilyIndex); + const Move cmdPool = createCommandPool(vkd, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex); const Move cmdBuffer = allocateCommandBuffer(vkd, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); bool result = false; -- 2.7.4