diff options
author | Marek Olšák <[email protected]> | 2018-03-06 18:30:06 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-03-08 14:58:16 -0500 |
commit | 9b7db1281521b95acb04db624bf93193fd3d4f56 (patch) | |
tree | 93aa39c9f14414cb59deae35856366af538daccd /src/gallium/drivers/radeonsi/si_shader_nir.c | |
parent | 78ef16e2f921355280c6ec92fc28753e6dd4d541 (diff) |
radeonsi: remove chip_class parameter from si_lower_nir
We can get it from si_screen.
Reviewed-by: Timothy Arceri <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader_nir.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_nir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 54ab0afca66..e5377358dc1 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -21,8 +21,8 @@ * USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "si_shader.h" #include "si_shader_internal.h" +#include "si_pipe.h" #include "ac_nir_to_llvm.h" @@ -623,7 +623,7 @@ void si_nir_scan_shader(const struct nir_shader *nir, * selector is created. */ void -si_lower_nir(struct si_shader_selector* sel, enum chip_class chip_class) +si_lower_nir(struct si_shader_selector* sel) { /* Adjust the driver location of inputs and outputs. The state tracker * interprets them as slots, while the ac/nir backend interprets them @@ -673,7 +673,7 @@ si_lower_nir(struct si_shader_selector* sel, enum chip_class chip_class) }; NIR_PASS_V(sel->nir, nir_lower_subgroups, &subgroups_options); - ac_lower_indirect_derefs(sel->nir, chip_class); + ac_lower_indirect_derefs(sel->nir, sel->screen->info.chip_class); bool progress; do { |