radv: store the bind point when creating descriptors with templates
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 23 Jan 2018 11:20:32 +0000 (12:20 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Feb 2018 08:37:07 +0000 (09:37 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_private.h

index b1ef663..bbabfa9 100644 (file)
@@ -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];
index 6239e33..463be84 100644 (file)
@@ -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];
 };