Fix barriers in synchronization2 tests
authorziga-lunarg <ziga@lunarg.com>
Tue, 20 Sep 2022 23:07:56 +0000 (01:07 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 6 Oct 2022 15:46:20 +0000 (15:46 +0000)
Stage VK_PIPELINE_STAGE_2_PRE_RASTERIZATION_SHADERS_BIT_KHR
is not supported with access mask VK_ACCESS_2_VERTEX_ATTRIBUTE_READ_BIT
or VK_ACCESS_2_INDEX_READ_BIT

Components: Vulkan

VK-GL-CTS issue: 3977

Affected tests:
dEQP-VK.synchronization2.*

Change-Id: I0c40b798e80fda98cdda49788210331a878f6bd5

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp

index 1825d7f3c0ef8df69853c8b981cce207986ee0bd..1eec8b007fe402964491a1e89490206d5224245e 100644 (file)
@@ -5020,7 +5020,7 @@ public:
                        // with this operation we can test pre_rasterization, index_input and attribute_input flags;
                        // since this operation is executed for three buffers of different size we use diferent flags depending on the size
                        if (m_resource.getBuffer().size > MAX_UPDATE_BUFFER_SIZE)
-                               stageMask = VK_PIPELINE_STAGE_2_PRE_RASTERIZATION_SHADERS_BIT_KHR;
+                               stageMask = VK_PIPELINE_STAGE_2_VERTEX_INPUT_BIT_KHR;
                        else
                                stageMask = usingIndexedDraw ? VK_PIPELINE_STAGE_2_INDEX_INPUT_BIT_KHR
                                                                                         : VK_PIPELINE_STAGE_2_VERTEX_ATTRIBUTE_INPUT_BIT_KHR;