intel/nir: Stop returning the shader from helpers
Now that NIR_TEST_* doesn't swap the shader out from under us, it's sufficient to just modify the shader rather than having to return in case we're testing serialization or cloning. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -192,7 +192,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
|
||||
*/
|
||||
wm_prog_data->base.binding_table.texture_start = BLORP_TEXTURE_BT_INDEX;
|
||||
|
||||
nir = brw_preprocess_nir(compiler, nir, NULL);
|
||||
brw_preprocess_nir(compiler, nir, NULL);
|
||||
nir_remove_dead_variables(nir, nir_var_shader_in);
|
||||
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
|
||||
|
||||
@@ -221,7 +221,7 @@ blorp_compile_vs(struct blorp_context *blorp, void *mem_ctx,
|
||||
nir->options =
|
||||
compiler->glsl_compiler_options[MESA_SHADER_VERTEX].NirOptions;
|
||||
|
||||
nir = brw_preprocess_nir(compiler, nir, NULL);
|
||||
brw_preprocess_nir(compiler, nir, NULL);
|
||||
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
|
||||
|
||||
vs_prog_data->inputs_read = nir->info.inputs_read;
|
||||
|
Reference in New Issue
Block a user