From bb67a99a2dfcf7258498ce868020feacd3d1fc15 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 4 Jun 2019 18:19:06 -0500 Subject: 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 --- src/gallium/drivers/iris/iris_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index d2a17b17ae7..2712eb29591 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -1857,7 +1857,7 @@ iris_create_uncompiled_shader(struct pipe_context *ctx, if (!ish) return NULL; - nir = brw_preprocess_nir(screen->compiler, nir, NULL); + brw_preprocess_nir(screen->compiler, nir, NULL); NIR_PASS_V(nir, brw_nir_lower_image_load_store, devinfo); NIR_PASS_V(nir, iris_lower_storage_image_derefs); -- cgit v1.2.3