+ for (uint32_t i = 0; i < regionCount; ++i) {
+ /* can't blit both depth and stencil at once with D32_S8
+ * TODO: more advanced 3D blit path to support it instead?
+ */
+ if (src_image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT ||
+ dst_image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT) {
+ VkImageBlit region = pRegions[i];
+ uint32_t b;
+ for_each_bit(b, pRegions[i].dstSubresource.aspectMask) {
+ region.srcSubresource.aspectMask = BIT(b);
+ region.dstSubresource.aspectMask = BIT(b);
+ tu6_blit_image(cmd, src_image, dst_image, ®ion, filter);
+ }
+ continue;
+ }