From fda662f4dffa658d28ea739dd236fe0350828d59 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 22 Mar 2012 08:58:33 -0700 Subject: [PATCH] glsl: Don't apply optimization passes to builtins. The builtins we have are generally optimized, having been hand-written. This avoids generating bad code when an optimization pass prints debug output. --- src/glsl/builtins/tools/generate_builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py index 0d97140174f..f58196f86f4 100755 --- a/src/glsl/builtins/tools/generate_builtins.py +++ b/src/glsl/builtins/tools/generate_builtins.py @@ -59,7 +59,7 @@ def write_function_definitions(): print stringify(v), ';' def run_compiler(args): - command = [compiler, '--dump-lir'] + args + command = [compiler, '--dump-hir'] + args p = Popen(command, 1, stdout=PIPE, shell=False) output = p.communicate()[0] -- 2.30.2