mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
venus: fix to ignore dstSet for push descriptor
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:
parent
7b228ef877
commit
c7bc90eaec
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue