Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/vulkan-cts-1.3.5
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / binding_model / vktBindingMutableTests.cpp
index 330f330..5449b6a 100644 (file)
@@ -4064,13 +4064,14 @@ void createChildren (tcu::TestCaseGroup* mainGroup)
                                DescriptorSet::BindingPtrVector setBindings;
                                std::vector<SingleBinding> arrayBindings;
 
-                               // Single mutable descriptor as the first binding.
-                               setBindings.emplace_back(new SingleBinding(VK_DESCRIPTOR_TYPE_MUTABLE_EXT, mandatoryTypes));
-
-                               // Descriptor array as the second binding.
+                               // Add single type beyond the mandatory ones.
                                auto arrayBindingDescTypes = mandatoryTypes;
                                arrayBindingDescTypes.push_back(descriptorType);
 
+                               // Single mutable descriptor as the first binding.
+                               setBindings.emplace_back(new SingleBinding(VK_DESCRIPTOR_TYPE_MUTABLE_EXT, arrayBindingDescTypes));
+
+                               // Descriptor array as the second binding.
                                if (aliasingCase.aliasing)
                                {
                                        // With aliasing, the descriptor types rotate in each descriptor.