From 90dade300fc38132ce5dbf2279628b38d9a84ab0 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 20 May 2017 11:18:08 -0400 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 2 -- 1 file changed, 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? */ -- 2.30.2