[Mesa-dev] [PATCH 05/10] radv: Fix GetDescriptorSetLayoutSupport.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 11 23:44:18 UTC 2018
The continue means we do alignment differently than during creation,
making the buffer smaller than expected.
---
src/amd/vulkan/radv_descriptor_set.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c
index 1100ca182b1..7a3a611dd68 100644
--- a/src/amd/vulkan/radv_descriptor_set.c
+++ b/src/amd/vulkan/radv_descriptor_set.c
@@ -230,9 +230,6 @@ void radv_GetDescriptorSetLayoutSupport(VkDevice device,
for (uint32_t i = 0; i < pCreateInfo->bindingCount; i++) {
const VkDescriptorSetLayoutBinding *binding = bindings + i;
- if (binding->descriptorCount == 0)
- continue;
-
uint64_t descriptor_size = 0;
uint64_t descriptor_alignment = 1;
switch (binding->descriptorType) {
--
2.17.0
More information about the mesa-dev
mailing list