From 04dbf709edf069bc720d941fab27c53269336bcf Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 28 May 2020 10:59:28 +1000 Subject: nir: add callback to nir_remove_dead_variables() This allows us to do API specific checks before removing variable without filling nir_remove_dead_variables() with API specific code. In the following patches we will use this to support the removal of dead uniforms in GLSL. Reviewed-by: Kenneth Graunke Reviewed-by: Eric Anholt Part-of: --- src/intel/blorp/blorp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/blorp') diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index d60d75e16c6..c3181a19e6c 100644 --- a/src/intel/blorp/blorp.c +++ b/src/intel/blorp/blorp.c @@ -191,7 +191,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx, wm_prog_data->base.binding_table.texture_start = BLORP_TEXTURE_BT_INDEX; brw_preprocess_nir(compiler, nir, NULL); - nir_remove_dead_variables(nir, nir_var_shader_in); + nir_remove_dead_variables(nir, nir_var_shader_in, NULL); nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); if (blorp->compiler->devinfo->gen < 6) { -- cgit v1.2.3