panvk: Only clear UBOs descriptors when set isn't present
The layout for dyn UBOs changed but we were still cleaning right after
UBOs.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Fixes: 9c553bda9c
("panvk: Prepare dynamic buffer descriptors at bind time")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29191>
This commit is contained in:

committed by
Marge Bot

parent
1f0f76dbdc
commit
02efe52aab
@@ -433,8 +433,8 @@ panvk_cmd_prepare_ubos(struct panvk_cmd_buffer *cmdbuf,
|
||||
panvk_per_arch(pipeline_layout_ubo_start)(pipeline->layout, s, false);
|
||||
|
||||
if (!set) {
|
||||
unsigned all_ubos = set_layout->num_ubos + set_layout->num_dyn_ubos;
|
||||
memset(&ubo_descs[ubo_start], 0, all_ubos * sizeof(*ubo_descs));
|
||||
memset(&ubo_descs[ubo_start], 0,
|
||||
set_layout->num_ubos * sizeof(*ubo_descs));
|
||||
} else {
|
||||
memcpy(&ubo_descs[ubo_start], set->ubos,
|
||||
set_layout->num_ubos * sizeof(*ubo_descs));
|
||||
|
Reference in New Issue
Block a user