From 642b12baef65889000c47d0efd8f0cdf2e49cad5 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 22 Feb 2024 08:56:20 +0200 Subject: [PATCH] anv: limit depth flush on dynamic render pass suspend Signed-off-by: Lionel Landwerlin Reviewed-by: Ivan Briano Reviewed-by: Paulo Zanoni Cc: mesa-stable Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index b2f633525a7..545fa01b981 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -4989,8 +4989,9 @@ void genX(CmdEndRendering)( "MSAA resolve"); } - if (gfx->depth_att.resolve_mode != VK_RESOLVE_MODE_NONE || - gfx->stencil_att.resolve_mode != VK_RESOLVE_MODE_NONE) { + if (!(gfx->rendering_flags & VK_RENDERING_SUSPENDING_BIT) && + (gfx->depth_att.resolve_mode != VK_RESOLVE_MODE_NONE || + gfx->stencil_att.resolve_mode != VK_RESOLVE_MODE_NONE)) { /* We are about to do some MSAA resolves. We need to flush so that the * result of writes to the MSAA depth attachments show up in the sampler * when we blit to the single-sampled resolve target.