mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pvr: Explain why dynamic descriptors are allocated separately.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20008>
This commit is contained in:
parent
c5d91ab254
commit
567ae39738
1 changed files with 4 additions and 3 deletions
|
|
@ -585,9 +585,10 @@ VkResult pvr_CreateDescriptorSetLayout(
|
|||
|
||||
internal_binding->shader_stage_mask |= (1U << stage);
|
||||
|
||||
/* TODO: Do we have to allocate them at the end? We could speed it
|
||||
* by allocating them here if not. */
|
||||
/* We allocate dynamics primary and secondaries at the end. */
|
||||
/* We allocate dynamics primary and secondaries separately so that we
|
||||
* can do a partial update of USC shared registers by just DMAing the
|
||||
* dynamic section and not having to re-DMA everything again.
|
||||
*/
|
||||
if (descriptor_type != VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC &&
|
||||
descriptor_type != VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC) {
|
||||
struct pvr_descriptor_size_info size_info;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue