vulkan/render_pass: Allow for mixed sample counts
authorJason Ekstrand <jason.ekstrand@collabora.com>
Wed, 25 May 2022 21:37:32 +0000 (16:37 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Jun 2022 22:37:53 +0000 (22:37 +0000)
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>

src/vulkan/runtime/vk_render_pass.c

index 048a187..4f96ac3 100644 (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;
          }
       }