summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-04-09 23:36:19 +0200
committerBas Nieuwenhuizen <[email protected]>2018-04-18 22:56:54 +0200
commit082c11e8a5c34f03dc355a13b014d9cfa3c8efce (patch)
tree03b375802fdcdb06dba3a0e0a59c602611e62805 /src/amd
parentd02bbde1a8e6b96ca3b2e0d160c966dcb63d6c16 (diff)
radv: Fix GetDescriptorSetLayoutSupport.
The continue means we do alignment differently than during creation, making the buffer smaller than expected. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_descriptor_set.c3
1 files changed, 0 insertions, 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) {