From: Eric Anholt Date: Thu, 22 Mar 2012 15:58:33 +0000 (-0700) Subject: glsl: Don't apply optimization passes to builtins. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fda662f4dffa658d28ea739dd236fe0350828d59;p=mesa.git 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. --- 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]