summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-05-20 11:18:08 -0400
committerRob Clark <[email protected]>2017-05-23 12:26:35 -0400
commit90dade300fc38132ce5dbf2279628b38d9a84ab0 (patch)
tree65336842beeeb1db8e7177c251d2826d97fd64f9 /src/gallium/drivers/freedreno/ir3
parent1059dc9165d8d6fae76fcf04709514806e07dd44 (diff)
freedreno/ir3: fix cmdline compiler
standalone_compiler_cleanup() frees the glsl types, among other things, so it needs to come after nir->ir3. But since we exit after dumping the disassembly, it is easier to just not call it at all. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_cmdline.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
index 10cf9c45568..fdec3f20b0d 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
@@ -113,8 +113,6 @@ load_glsl(unsigned num_files, char* const* files, gl_shader_stage stage)
nir_shader *nir = glsl_to_nir(prog, stage, ir3_get_compiler_options(compiler));
- standalone_compiler_cleanup(prog);
-
/* required NIR passes: */
/* TODO cmdline args for some of the conditional lowering passes? */