mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 20:40:39 +01:00
hk: fix vkd3d-proton descriptor-performance
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30633>
This commit is contained in:
parent
1d5c2f56d8
commit
431a176287
1 changed files with 5 additions and 1 deletions
|
|
@ -557,7 +557,11 @@ hk_descriptor_set_create(struct hk_device *dev, struct hk_descriptor_pool *pool,
|
|||
(layout->binding[layout->binding_count - 1].flags &
|
||||
VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT)) {
|
||||
uint32_t stride = layout->binding[layout->binding_count - 1].stride;
|
||||
set->size += stride * variable_count;
|
||||
|
||||
/* Off by one so we don't underallocate the end. Otherwise vkd3d-proton
|
||||
* descriptor-performance underallocates.
|
||||
*/
|
||||
set->size += stride * (variable_count + 1);
|
||||
}
|
||||
|
||||
set->size = align64(set->size, HK_MIN_UBO_ALIGNMENT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue