radv/meta: remove useless assertion when choosing resolve method

The destination image layout is used for depth/stencil resolves and
asserting isn't very useful.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37300>
This commit is contained in:
Samuel Pitoiset 2025-09-11 15:32:27 +02:00 committed by Marge Bot
parent c8f6b27964
commit 8d991c2572

View file

@ -220,7 +220,6 @@ radv_pick_resolve_method_images(struct radv_device *device, struct radv_image *s
else if (src_image->vk.array_layers > 1 || dst_image->vk.array_layers > 1)
*method = RESOLVE_COMPUTE;
} else {
assert(dst_image_layout == VK_IMAGE_LAYOUT_UNDEFINED);
if (src_image->vk.array_layers > 1 || dst_image->vk.array_layers > 1 ||
(dst_image->planes[0].surface.flags & RADEON_SURF_NO_RENDER_TARGET))
*method = RESOLVE_COMPUTE;