diff options
author | Samuel Pitoiset <[email protected]> | 2018-01-23 12:20:32 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-01 09:37:07 +0100 |
commit | cf224014dd2d4e6651ae15d346e624065614e8fd (patch) | |
tree | 33bd4eb71e47f9b3b4a2b5294433ac16be7c6709 | |
parent | 7ea15a36fbeee8a7b6ed302a118859fcb37ec9d5 (diff) |
radv: store the bind point when creating descriptors with templates
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_descriptor_set.c | 1 | ||||
-rw-r--r-- | src/amd/vulkan/radv_private.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index b1ef66308d6..bbabfa9b275 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 6239e331839..463be84f4ac 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]; }; |