anv: limit depth flush on dynamic render pass suspend

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27745>
This commit is contained in:
Lionel Landwerlin 2024-02-22 08:56:20 +02:00 committed by Marge Bot
parent abeac8cf96
commit 642b12baef

View file

@ -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.