From: Jason Ekstrand Date: Tue, 7 Jul 2015 00:43:58 +0000 (-0700) Subject: vk/vulkan.h: Rename count to arraySize in VkDescriptorSetLayoutBinding X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63c1190e4734894b95fd62e3e4ee75bc0ff6dde0;p=mesa.git vk/vulkan.h: Rename count to arraySize in VkDescriptorSetLayoutBinding --- diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index e3c29b55b10..a0f50e0f024 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -1573,7 +1573,7 @@ typedef struct { typedef struct { VkDescriptorType descriptorType; - uint32_t count; + uint32_t arraySize; VkShaderStageFlags stageFlags; const VkSampler* pImmutableSamplers; } VkDescriptorSetLayoutBinding; diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 3c73a404f67..cfe9201e2e6 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1645,7 +1645,7 @@ VkResult anv_CreateDescriptorSetLayout( case VK_DESCRIPTOR_TYPE_SAMPLER: case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: for_each_bit(s, pCreateInfo->pBinding[i].stageFlags) - sampler_count[s] += pCreateInfo->pBinding[i].count; + sampler_count[s] += pCreateInfo->pBinding[i].arraySize; break; default: break; @@ -1662,7 +1662,7 @@ VkResult anv_CreateDescriptorSetLayout( case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC: case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: for_each_bit(s, pCreateInfo->pBinding[i].stageFlags) - surface_count[s] += pCreateInfo->pBinding[i].count; + surface_count[s] += pCreateInfo->pBinding[i].arraySize; break; default: break; @@ -1671,14 +1671,14 @@ VkResult anv_CreateDescriptorSetLayout( switch (pCreateInfo->pBinding[i].descriptorType) { case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC: case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: - num_dynamic_buffers += pCreateInfo->pBinding[i].count; + num_dynamic_buffers += pCreateInfo->pBinding[i].arraySize; break; default: break; } stages |= pCreateInfo->pBinding[i].stageFlags; - count += pCreateInfo->pBinding[i].count; + count += pCreateInfo->pBinding[i].arraySize; } uint32_t sampler_total = 0; @@ -1719,7 +1719,7 @@ VkResult anv_CreateDescriptorSetLayout( case VK_DESCRIPTOR_TYPE_SAMPLER: case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: for_each_bit(s, pCreateInfo->pBinding[i].stageFlags) - for (uint32_t j = 0; j < pCreateInfo->pBinding[i].count; j++) { + for (uint32_t j = 0; j < pCreateInfo->pBinding[i].arraySize; j++) { sampler[s]->index = descriptor + j; sampler[s]->dynamic_slot = -1; sampler[s]++; @@ -1750,7 +1750,7 @@ VkResult anv_CreateDescriptorSetLayout( case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC: case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: for_each_bit(s, pCreateInfo->pBinding[i].stageFlags) - for (uint32_t j = 0; j < pCreateInfo->pBinding[i].count; j++) { + for (uint32_t j = 0; j < pCreateInfo->pBinding[i].arraySize; j++) { surface[s]->index = descriptor + j; if (is_dynamic) surface[s]->dynamic_slot = dynamic_slot + j; @@ -1764,9 +1764,9 @@ VkResult anv_CreateDescriptorSetLayout( } if (is_dynamic) - dynamic_slot += pCreateInfo->pBinding[i].count; + dynamic_slot += pCreateInfo->pBinding[i].arraySize; - descriptor += pCreateInfo->pBinding[i].count; + descriptor += pCreateInfo->pBinding[i].arraySize; } *pSetLayout = (VkDescriptorSetLayout) set_layout; diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c index 2c5a4548dc1..b782279e7b9 100644 --- a/src/vulkan/meta.c +++ b/src/vulkan/meta.c @@ -415,7 +415,7 @@ anv_device_init_meta_blit_state(struct anv_device *device) .pBinding = (VkDescriptorSetLayoutBinding[]) { { .descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, - .count = 1, + .arraySize = 1, .stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT, .pImmutableSamplers = NULL },