Mesa (master): freedreno/ir3: fix cmdline compiler

Rob Clark robclark at kemper.freedesktop.org
Tue May 23 16:37:13 UTC 2017


Module: Mesa
Branch: master
Commit: 90dade300fc38132ce5dbf2279628b38d9a84ab0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90dade300fc38132ce5dbf2279628b38d9a84ab0

Author: Rob Clark <robdclark at gmail.com>
Date:   Sat May 20 11:18:08 2017 -0400

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 at gmail.com>

---

 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 10cf9c4556..fdec3f20b0 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? */
 




More information about the mesa-commit mailing list