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 b1ef66308d6d9e61d69e506a760b0727695c3158..bbabfa9b2755c21a54e4bb6062a63fe170f384fc 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 6239e331839e11522c6a3f09990bbf93e1e99a6e..463be84f4acfba366303d2d1293eff079093959e 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];
 };