Mesa (main): radv: allow to force per-vertex VRS in the tessellation stage

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 16 21:35:51 UTC 2022


Module: Mesa
Branch: main
Commit: 3cc53c047aef7d823446d86b575b41f7ebaad2a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cc53c047aef7d823446d86b575b41f7ebaad2a3

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Feb 11 16:44:39 2022 +0100

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 at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15042>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 153e5897b40..ea22e9c7250 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3664,8 +3664,8 @@ radv_consider_force_vrs(const struct radv_pipeline *pipeline, bool noop_fs, nir_
    if (!device->force_vrs_enabled)
       return false;
 
-   /* Only VS and GS are supported for now. */
    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)
       return false;
 



More information about the mesa-commit mailing list