Module: Mesa
Branch: main
Commit: 785b6579ae55e1320aa331de945366e18f41bf12
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=785b6579ae55e1320aa331de945366e18f41bf12

Author: Vadym Shovkoplias <[email protected]>
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 <[email protected]>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6201
Reviewed-by: Lionel Landwerlin <[email protected]>
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;

Reply via email to