Mesa (main): anv: Fix geometry flickering issue when compute and 3D passes are combined
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 21 11:20:01 UTC 2022
Module: Mesa
Branch: main
Commit: 785b6579ae55e1320aa331de945366e18f41bf12
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=785b6579ae55e1320aa331de945366e18f41bf12
Author: Vadym Shovkoplias <vadym.shovkoplias at globallogic.com>
Date: Thu Apr 14 21:52:47 2022 +0300
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: 3501a3f9ed92 ("anv: Convert to 100% dynamic rendering")
Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias at globallogic.com>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6201
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15954>
---
src/intel/vulkan/genX_cmd_buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 0379ba8ad0c..0f3caa24f6d 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -6530,6 +6530,8 @@ void genX(CmdBeginRendering)(
if (result != VK_SUCCESS)
return;
+ genX(flush_pipeline_select_3d)(cmd_buffer);
+
for (uint32_t i = 0; i < gfx->color_att_count; i++) {
if (!(color_att_valid & BITFIELD_BIT(i)))
continue;
More information about the mesa-commit
mailing list