vulkan/render_pass: Allow for mixed sample counts

RADV supports VK_AMD_mixed_attachment_samples which does exactly what it
sounds like.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16953>
This commit is contained in:
Jason Ekstrand 2022-05-25 16:37:32 -05:00 committed by Marge Bot
parent 7e11cdc77a
commit 541819b2d6

View file

@ -648,7 +648,6 @@ vk_common_CreateRenderPass2(VkDevice _device,
color_formats[a] = att->format;
assert(samples == 0 || samples == att->samples);
samples |= att->samples;
}
}
@ -668,7 +667,6 @@ vk_common_CreateRenderPass2(VkDevice _device,
if (vk_format_has_stencil(att->format))
stencil_format = att->format;
assert(samples == 0 || samples == att->samples);
samples |= att->samples;
}
}