intel/nir: Stop returning the shader from helpers
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 4 Jun 2019 23:19:06 +0000 (18:19 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 5 Jun 2019 20:07:28 +0000 (20:07 +0000)
commitbb67a99a2dfcf7258498ce868020feacd3d1fc15
treea6a7a4df193199c519ee9b9027d776d10aa75cae
parentfe2fc30cb559f7ef99c07bd219c057b011242cb4
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>
src/gallium/drivers/iris/iris_program.c
src/intel/blorp/blorp.c
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_shader.cpp
src/intel/compiler/brw_vec4.cpp
src/intel/compiler/brw_vec4_gs_visitor.cpp
src/intel/compiler/brw_vec4_tcs.cpp
src/intel/vulkan/anv_pipeline.c
src/mesa/drivers/dri/i965/brw_program.c