Make sure we aren't allocating more ycbcr desc sets in Vk than available.
Ycbcr images in vulkan can use anywhere from 1 to 3 descriptor set slots.
This comes from some gpus needing to internally treat the different
planes as different textures/samplers. So when you allocated a desc set
that includes a ycbcr image it may actually use up 3 desc set slots from
the pool. Nothing else changes in how we use the VkImage or descriptor
set. Just a matter of accounting for it in the pool.
Reviewed-by: Jim Van Verth <firstname.lastname@example.org>
Commit-Queue: Greg Daniel <email@example.com>
(cherry picked from commit bee1b55f30f445cf473531ab1894fba4098a6447)
Reviewed-by: Derek Sollenberger <firstname.lastname@example.org>
2 files changed