From: Samuel Pitoiset Date: Tue, 23 Jan 2018 11:20:32 +0000 (+0100) Subject: radv: store the bind point when creating descriptors with templates X-Git-Tag: upstream/18.1.0~2103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf224014dd2d4e6651ae15d346e624065614e8fd;p=platform%2Fupstream%2Fmesa.git radv: store the bind point when creating descriptors with templates Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index b1ef663..bbabfa9 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -847,6 +847,7 @@ VkResult radv_CreateDescriptorUpdateTemplateKHR(VkDevice _device, return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); templ->entry_count = entry_count; + templ->bind_point = pCreateInfo->pipelineBindPoint; for (i = 0; i < entry_count; i++) { const VkDescriptorUpdateTemplateEntryKHR *entry = &pCreateInfo->pDescriptorUpdateEntries[i]; diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 6239e33..463be84 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -720,6 +720,7 @@ struct radv_descriptor_update_template_entry { struct radv_descriptor_update_template { uint32_t entry_count; + VkPipelineBindPoint bind_point; struct radv_descriptor_update_template_entry entry[0]; };