mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Merge branch 'columbarius/vulkan-compute-fix-invalid-buffer-id' into 'master'
Draft: vulkan: compute return from process on invalid buffer id See merge request pipewire/pipewire!1855
This commit is contained in:
commit
5abc2b4944
1 changed files with 5 additions and 0 deletions
|
|
@ -149,6 +149,11 @@ static int updateDescriptors(struct vulkan_compute_state *s)
|
||||||
};
|
};
|
||||||
descriptorSetLen++;
|
descriptorSetLen++;
|
||||||
}
|
}
|
||||||
|
// Abort process if any buffer is not valid
|
||||||
|
if (s->streams[0].current_buffer_id == SPA_ID_INVALID
|
||||||
|
|| (s->n_streams == 2 && s->streams[1].current_buffer_id == SPA_ID_INVALID))
|
||||||
|
return -1;
|
||||||
|
|
||||||
vkUpdateDescriptorSets(s->base.device, descriptorSetLen,
|
vkUpdateDescriptorSets(s->base.device, descriptorSetLen,
|
||||||
writeDescriptorSet, 0, NULL);
|
writeDescriptorSet, 0, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue