From 156d509ca42857499a05762e82728148aa35576d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 2 Aug 2023 14:54:21 +1000 Subject: [PATCH] gallivm/nir: avoid using params->info This shouldn't be needed. Reviewed-by: Emma Anholt Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c index 3efcd22a86b..59812cd7537 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c @@ -2927,7 +2927,6 @@ void lp_build_nir_soa(struct gallivm_state *gallivm, bld.consts_ptr = params->consts_ptr; bld.ssbo_ptr = params->ssbo_ptr; bld.sampler = params->sampler; -// bld.bld_base.info = params->info; bld.resources_type = params->resources_type; bld.resources_ptr = params->resources_ptr; @@ -2940,7 +2939,7 @@ void lp_build_nir_soa(struct gallivm_state *gallivm, bld.coro = params->coro; bld.kernel_args_ptr = params->kernel_args; bld.indirects = 0; - if (params->info->indirect_files & (1 << TGSI_FILE_INPUT)) + if (shader->info.inputs_read_indirectly) bld.indirects |= nir_var_shader_in; bld.gs_iface = params->gs_iface;