From b78ea2a38f2397e0e576e5cd79aa9a92d71e6998 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 9 Aug 2023 17:44:54 +0200 Subject: [PATCH] radv: stop copying if VS or TES uses the InvocationID built-in It's only allowed in TCS or GS which means the src shader stage value is always FALSE. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_shader_info.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index 6f718afd846..18a08ef2229 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -1640,7 +1640,6 @@ radv_nir_shader_info_merge(const struct radv_shader_stage *src, struct radv_shad dst_info->loads_dynamic_offsets |= src_info->loads_dynamic_offsets; dst_info->desc_set_used_mask |= src_info->desc_set_used_mask; dst_info->uses_view_index |= src_info->uses_view_index; - dst_info->uses_invocation_id |= src_info->uses_invocation_id; dst_info->uses_prim_id |= src_info->uses_prim_id; dst_info->inline_push_constant_mask |= src_info->inline_push_constant_mask;