tests: Workaround Clang bug in Android NDK r14
Incorrect arm64 assembly is generated unless we write directly to the last member of this struct.
This is a workaround for a bug that does not occur after clang 3688880.
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 7efb508..45b1bc6 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -13548,6 +13548,7 @@
descriptorset_layout_binding.descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
descriptorset_layout_binding.descriptorCount = 1;
descriptorset_layout_binding.stageFlags = VK_SHADER_STAGE_ALL;
+ descriptorset_layout_binding.pImmutableSamplers = nullptr;
VkDescriptorSetLayoutCreateInfo descriptorset_layout_create_info = {};
descriptorset_layout_create_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;
@@ -13643,6 +13644,7 @@
descriptorset_layout_binding.descriptorCount = 1;
// Intentionally make the uniform buffer inaccessible to the vertex shader to challenge core_validation
descriptorset_layout_binding.stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
+ descriptorset_layout_binding.pImmutableSamplers = nullptr;
VkDescriptorSetLayoutCreateInfo descriptorset_layout_create_info = {};
descriptorset_layout_create_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;