ac/nir: use shader_info pass to determine whether instance_id is used
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 26 Jun 2017 12:36:47 +0000 (14:36 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:39 +0000 (14:55 +0200)
commitba06e8bbe8c75ceeaf12dbddff40b2ad4124fe4b
tree7062ba0fa5a4ebcf750ec7ce3bd7da6993d8ba14
parentbe0488a1736d1f45d473d4f0c16243897a1d8491
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 <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_shader_info.c
src/amd/common/ac_shader_info.h