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.

Bug: b/192358244
Change-Id: I10dead981e59f0ebee54b76bdeabf968114d83b0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/422520
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
(cherry picked from commit bee1b55f30f445cf473531ab1894fba4098a6447)
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423021
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2 files changed