diff options
author | Nicolai Hähnle <[email protected]> | 2017-06-26 14:36:47 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-07-31 14:55:39 +0200 |
commit | ba06e8bbe8c75ceeaf12dbddff40b2ad4124fe4b (patch) | |
tree | 7062ba0fa5a4ebcf750ec7ce3bd7da6993d8ba14 /src/amd/common/ac_shader_info.c | |
parent | be0488a1736d1f45d473d4f0c16243897a1d8491 (diff) |
ac/nir: use shader_info pass to determine whether instance_id is used
This improves the separation of ABI and NIR translation.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_info.c')
-rw-r--r-- | src/amd/common/ac_shader_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c index 13d73df11f9..7d34535c107 100644 --- a/src/amd/common/ac_shader_info.c +++ b/src/amd/common/ac_shader_info.c @@ -39,6 +39,9 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, struct ac_shader_info *info) case nir_intrinsic_load_draw_id: info->vs.needs_draw_id = true; break; + case nir_intrinsic_load_instance_id: + info->vs.needs_instance_id = true; + break; case nir_intrinsic_load_num_work_groups: info->cs.grid_components_used = instr->num_components; break; |