diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2021-09-23 12:40:57 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-09-24 08:26:08 +0000 |
commit | 7ad69e2f7ee10c0e7afc302b9324e7a320424dcb (patch) | |
tree | 30471c42ddec06c72b9d4e92c577fc93eb191f46 | |
parent | babc0b07483fd134ade0d741a75ce928050cdc22 (diff) |
radv: stop loading invocation ID for NGG vertex shaders
This is unnecessary and was copied from RadeonSI which needs it for
edge flags. RADV should never to read the invocation ID for VS.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12997>
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 2bddfd5a53a..bdec41c9cd9 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1294,7 +1294,7 @@ radv_postprocess_config(const struct radv_device *device, const struct ac_shader bool tes_triangles = stage == MESA_SHADER_TESS_EVAL && info->tes.primitive_mode >= 4; /* GL_TRIANGLES */ - if (info->uses_invocation_id || stage == MESA_SHADER_VERTEX) { + if (info->uses_invocation_id) { gs_vgpr_comp_cnt = 3; /* VGPR3 contains InvocationID. */ } else if (info->uses_prim_id) { gs_vgpr_comp_cnt = 2; /* VGPR2 contains PrimitiveID. */ |