Mesa (main): vulkan/render_pass: Allow for mixed sample counts

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 24 23:08:44 UTC 2022


Module: Mesa
Branch: main
Commit: 541819b2d6d37f435702b63817a363be2e3e447b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=541819b2d6d37f435702b63817a363be2e3e447b

Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Wed May 25 16:37:32 2022 -0500

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 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16953>

---

 src/vulkan/runtime/vk_render_pass.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/vulkan/runtime/vk_render_pass.c b/src/vulkan/runtime/vk_render_pass.c
index 048a1875df6..4f96ac39acd 100644
--- a/src/vulkan/runtime/vk_render_pass.c
+++ b/src/vulkan/runtime/vk_render_pass.c
@@ -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;
          }
       }



More information about the mesa-commit mailing list