aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_nir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-06-05 11:43:13 -0700
committerEric Anholt <[email protected]>2019-06-21 17:14:43 -0700
commit01d0bad9efa1973293920f3c2bae78fca807f204 (patch)
treebf6bd88e7bdc3da2a01d51c3b989d0a2be6563d6 /src/freedreno/ir3/ir3_nir.h
parent56842d33d53f3ea76b9359e8ead2ea4487e62dc1 (diff)
freedreno: Remove silly return from ir3_optimize_nir().
We only ever return the shader we were passed in (but internally modified). Reviewed-by: Rob Clark <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_nir.h')
-rw-r--r--src/freedreno/ir3/ir3_nir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_nir.h b/src/freedreno/ir3/ir3_nir.h
index 6314c097956..a9b39e235b5 100644
--- a/src/freedreno/ir3/ir3_nir.h
+++ b/src/freedreno/ir3/ir3_nir.h
@@ -43,7 +43,7 @@ bool ir3_nir_move_varying_inputs(nir_shader *shader);
const nir_shader_compiler_options * ir3_get_compiler_options(struct ir3_compiler *compiler);
bool ir3_key_lowers_nir(const struct ir3_shader_key *key);
-struct nir_shader * ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
+void ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
const struct ir3_shader_key *key);
bool ir3_nir_analyze_ubo_ranges(nir_shader *nir, struct ir3_shader *shader);