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 <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2017-05-20 11:18:08 -04:00
parent 1059dc9165
commit 90dade300f

View file

@ -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? */