freedreno/ir3: fix cmdline compiler
authorRob Clark <robdclark@gmail.com>
Sat, 20 May 2017 15:18:08 +0000 (11:18 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 May 2017 16:26:35 +0000 (12:26 -0400)
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>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c

index 10cf9c4..fdec3f2 100644 (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? */