From: Rob Clark Date: Sat, 20 May 2017 15:18:08 +0000 (-0400) Subject: freedreno/ir3: fix cmdline compiler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90dade300fc38132ce5dbf2279628b38d9a84ab0;p=mesa.git 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 --- 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? */