anv: Fix geometry flickering issue when compute and 3D passes are combined

Call flush_pipeline_select_3d in CmdBeginRendering() to emit a dummy MEDIA_VFE_STATE
before switching from GPGPU to 3D.

Original commit with the fix:
bc612536 ("anv: Emit a dummy MEDIA_VFE_STATE before switching from GPGPU to 3D")

Fixes: 3501a3f9ed ("anv: Convert to 100% dynamic rendering")
Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6201
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15954>
This commit is contained in:
Vadym Shovkoplias 2022-04-14 21:52:47 +03:00 committed by Marge Bot
parent f854e6ec9b
commit 785b6579ae

View file

@ -6530,6 +6530,8 @@ void genX(CmdBeginRendering)(
if (result != VK_SUCCESS) if (result != VK_SUCCESS)
return; return;
genX(flush_pipeline_select_3d)(cmd_buffer);
for (uint32_t i = 0; i < gfx->color_att_count; i++) { for (uint32_t i = 0; i < gfx->color_att_count; i++) {
if (!(color_att_valid & BITFIELD_BIT(i))) if (!(color_att_valid & BITFIELD_BIT(i)))
continue; continue;