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>
(cherry picked from commit 642b12baef65889000c47d0efd8f0cdf2e49cad5)
This commit is contained in:
Lionel Landwerlin 2024-02-22 08:56:20 +02:00 committed by Eric Engestrom
parent d2c6a48ee9
commit f5311e2418
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,7 @@
"description": "anv: limit depth flush on dynamic render pass suspend", "description": "anv: limit depth flush on dynamic render pass suspend",
"nominated": true, "nominated": true,
"nomination_type": 0, "nomination_type": 0,
"resolution": 0, "resolution": 1,
"main_sha": null, "main_sha": null,
"because_sha": null, "because_sha": null,
"notes": null "notes": null

View file

@ -8370,8 +8370,9 @@ void genX(CmdEndRendering)(
"MSAA resolve"); "MSAA resolve");
} }
if (gfx->depth_att.resolve_mode != VK_RESOLVE_MODE_NONE || if (!(gfx->rendering_flags & VK_RENDERING_SUSPENDING_BIT) &&
gfx->stencil_att.resolve_mode != VK_RESOLVE_MODE_NONE) { (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 /* 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 * result of writes to the MSAA depth attachments show up in the sampler
* when we blit to the single-sampled resolve target. * when we blit to the single-sampled resolve target.