venus: fix to ignore dstSet for push descriptor
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Per push descriptor spec:

Each element of pDescriptorWrites is interpreted as in
VkWriteDescriptorSet, except the dstSet member is ignored.

Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33948>
This commit is contained in:
Yiwei Zhang 2025-03-07 11:49:28 -08:00 committed by Marge Bot
parent 7b228ef877
commit c7bc90eaec

View file

@ -771,6 +771,11 @@ vn_descriptor_set_get_writes(uint32_t write_count,
: vn_descriptor_set_from_handle(writes[i].dstSet)->layout;
VkWriteDescriptorSet *write = &local->writes[i];
VkDescriptorImageInfo *img_infos = &local->img_infos[img_info_count];
/* dstSet is ignored for push descriptor */
if (pipeline_layout)
write->dstSet = VK_NULL_HANDLE;
bool ignore_sampler = true;
bool ignore_iview = false;
switch (write->descriptorType) {