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:
@@ -1244,10 +1244,10 @@ brw_compile_tes(const struct brw_compiler *compiler,
|
||||
nir->info.inputs_read = key->inputs_read;
|
||||
nir->info.patch_inputs_read = key->patch_inputs_read;
|
||||
|
||||
nir = brw_nir_apply_sampler_key(nir, compiler, &key->tex, is_scalar);
|
||||
brw_nir_apply_sampler_key(nir, compiler, &key->tex, is_scalar);
|
||||
brw_nir_lower_tes_inputs(nir, input_vue_map);
|
||||
brw_nir_lower_vue_outputs(nir);
|
||||
nir = brw_postprocess_nir(nir, compiler, is_scalar);
|
||||
brw_postprocess_nir(nir, compiler, is_scalar);
|
||||
|
||||
brw_compute_vue_map(devinfo, &prog_data->base.vue_map,
|
||||
nir->info.outputs_written,
|
||||
|
Reference in New Issue
Block a user