From 8849e1e3a6512b5e1502d404cce74770482b0447 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Tue, 27 Jun 2023 12:17:17 +0200 Subject: [PATCH] anv: emitting 3DSTATE_PRIMITIVE_REPLICATION is required on Gen12+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 016d9b1b81c..2f84786eb0b 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -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