radv: simplify an assertion after considering RADV_FORCE_VRS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 2 Feb 2023 13:24:45 +0000 (14:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Feb 2023 15:06:07 +0000 (15:06 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21068>

src/amd/vulkan/radv_pipeline.c

index ab2440e..a618cd3 100644 (file)
@@ -3584,9 +3584,7 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline,
 
    /* Force per-vertex VRS. */
    if (radv_consider_force_vrs(pipeline, noop_fs, stages)) {
-      assert(pipeline->last_vgt_api_stage == MESA_SHADER_VERTEX ||
-             pipeline->last_vgt_api_stage == MESA_SHADER_TESS_EVAL ||
-             pipeline->last_vgt_api_stage == MESA_SHADER_GEOMETRY);
+      assert(pipeline->last_vgt_api_stage != MESA_SHADER_MESH);
       nir_shader *last_vgt_shader = stages[pipeline->last_vgt_api_stage].nir;
       NIR_PASS(_, last_vgt_shader, radv_force_primitive_shading_rate, device);
    }