radv: do not load the local invocation index when it's unused
[mesa.git] / src / amd / common / ac_shader_info.c
index 87744ed23e141bbafdbbb2dcb51ef588879d4779..3299b47e6b879f97b7934dd7fa4e947eec3df040 100644 (file)
@@ -58,6 +58,9 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, struct ac_shader_info *info)
                }
                break;
        }
+       case nir_intrinsic_load_local_invocation_index:
+               info->cs.uses_local_invocation_idx = true;
+               break;
        case nir_intrinsic_load_sample_id:
                info->ps.force_persample = true;
                break;