summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
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/gallium/drivers/freedreno
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/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_cmdline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
index 34b39aa65f0..f8acc480d69 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
@@ -490,7 +490,9 @@ int main(int argc, char **argv)
}
s.compiler = compiler;
- s.nir = ir3_optimize_nir(&s, nir, NULL);
+ s.nir = nir;
+
+ ir3_optimize_nir(&s, nir, NULL);
v.key = key;
v.shader = &s;