anv: emitting 3DSTATE_PRIMITIVE_REPLICATION is required on Gen12+
authorRohan Garg <rohan.garg@intel.com>
Tue, 27 Jun 2023 10:17:17 +0000 (12:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Aug 2023 11:36:45 +0000 (11:36 +0000)
This change helps fix the following tests on future platforms:
  - func.multiview
  - dEQP-VK.fragment_shading_rate.renderpass2.monolithic.multiviewsrlayered.dynamic.attachment.noshaderrate.keep.replace.1x1.samples1.vs
  - anything else that uses multiview

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24746>

src/intel/vulkan/genX_pipeline.c

index 016d9b1..2f84786 100644 (file)
@@ -1635,7 +1635,7 @@ compute_kill_pixel(struct anv_graphics_pipeline *pipeline,
       (ms && ms->alpha_to_coverage_enable);
 }
 
-#if GFX_VER == 12
+#if GFX_VER >= 12
 static void
 emit_3dstate_primitive_replication(struct anv_graphics_pipeline *pipeline,
                                    const struct vk_render_pass_state *rp)
@@ -1827,7 +1827,7 @@ genX(graphics_pipeline_emit)(struct anv_graphics_pipeline *pipeline,
 
    emit_3dstate_clip(pipeline, state->ia, state->vp, state->rs);
 
-#if GFX_VER == 12
+#if GFX_VER >= 12
    emit_3dstate_primitive_replication(pipeline, state->rp);
 #endif