diff options
author | Fredrik Höglund <[email protected]> | 2017-03-29 18:08:06 +0200 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2017-04-07 00:54:46 +0200 |
commit | a6e94a87cb0d0fd61f70a0eb5e33b3520a50d3c1 (patch) | |
tree | a4038c0be317d35b4035786220e0ded187609f74 /src/amd/vulkan/radv_private.h | |
parent | bedd89429ffda9d4a87da6f7e7ea2aa93b8420c4 (diff) |
radv: refactor radv_UpdateDescriptorSets
Move the implementation into a separate function that takes a
cmd_buffer and a dstSetOverride parameter.
When cmd_buffer is not NULL, radv_update_descriptor_sets calls
cs_add_buffer directly instead of updating the buffer list.
This will be used to implement VK_KHR_push_descriptor.
Signed-off-by: Fredrik Höglund <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index a28c8250367..cba1891d1e5 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1344,6 +1344,16 @@ radv_temp_descriptor_set_create(struct radv_device *device, void radv_temp_descriptor_set_destroy(struct radv_device *device, VkDescriptorSet _set); + +void +radv_update_descriptor_sets(struct radv_device *device, + struct radv_cmd_buffer *cmd_buffer, + VkDescriptorSet overrideSet, + uint32_t descriptorWriteCount, + const VkWriteDescriptorSet *pDescriptorWrites, + uint32_t descriptorCopyCount, + const VkCopyDescriptorSet *pDescriptorCopies); + void radv_initialise_cmask(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, uint32_t value); void radv_initialize_dcc(struct radv_cmd_buffer *cmd_buffer, |