radv: fix bogus assertion with RADV_FORCE_VRS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 Aug 2022 14:41:21 +0000 (16:41 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 16:09:37 +0000 (16:09 +0000)
It supports VS, TES and GS.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18345>

src/amd/vulkan/radv_pipeline.c

index 6d85551..e36bb65 100644 (file)
@@ -4529,6 +4529,7 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
    /* Force per-vertex VRS. */
    if (radv_consider_force_vrs(pipeline, noop_fs, stages, *last_vgt_api_stage)) {
       assert(*last_vgt_api_stage == MESA_SHADER_VERTEX ||
+             *last_vgt_api_stage == MESA_SHADER_TESS_EVAL ||
              *last_vgt_api_stage == MESA_SHADER_GEOMETRY);
       nir_shader *last_vgt_shader = stages[*last_vgt_api_stage].nir;
       NIR_PASS(_, last_vgt_shader, radv_force_primitive_shading_rate, device);