Mark storage buffer as readonly
authorGraeme Leese <gleese@broadcom.com>
Tue, 16 Oct 2018 10:08:33 +0000 (11:08 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 22 Oct 2018 09:27:38 +0000 (05:27 -0400)
Since the test only reads it, mark the buffer as readonly. Without the
qualifier the test is invalid on implementations that don't support
vertexPipelineStoresAndAtomics.

Components: Vulkan
Affects: dEQP-VK.memory.pipeline_barrier.host_write_storage_buffer.*
         dEQP-VK.memory.pipeline_barrier.all.*

Change-Id: Ia92553415bc4b24812f5993c79d3ba2cd7fad0a9

external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp

index 975e560..3991067 100644 (file)
@@ -9579,7 +9579,7 @@ struct AddPrograms
                                const char* const vertexShader =
                                        "#version 310 es\n"
                                        "precision highp float;\n"
-                                       "layout(set=0, binding=0) buffer Block\n"
+                                       "readonly layout(set=0, binding=0) buffer Block\n"
                                        "{\n"
                                        "\thighp uvec4 values[];\n"
                                        "} block;\n"