radv: allow to force per-vertex VRS in the tessellation stage

It's more useful than I thought.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15042>
This commit is contained in:
Samuel Pitoiset
2022-02-11 16:44:39 +01:00
committed by Marge Bot
parent eebe298a87
commit 3cc53c047a

View File

@@ -3664,8 +3664,8 @@ radv_consider_force_vrs(const struct radv_pipeline *pipeline, bool noop_fs, nir_
if (!device->force_vrs_enabled) if (!device->force_vrs_enabled)
return false; return false;
/* Only VS and GS are supported for now. */
if (pipeline->graphics.last_vgt_api_stage != MESA_SHADER_VERTEX && if (pipeline->graphics.last_vgt_api_stage != MESA_SHADER_VERTEX &&
pipeline->graphics.last_vgt_api_stage != MESA_SHADER_TESS_EVAL &&
pipeline->graphics.last_vgt_api_stage != MESA_SHADER_GEOMETRY) pipeline->graphics.last_vgt_api_stage != MESA_SHADER_GEOMETRY)
return false; return false;