summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-22 08:58:33 -0700
committerEric Anholt <[email protected]>2012-04-11 18:08:21 -0700
commitfda662f4dffa658d28ea739dd236fe0350828d59 (patch)
tree5ec4fa4c028710b9244e8376842004aac584ae7b /src/glsl/builtins/tools
parent0fd4165261311fb36c98885edb7331df29eec09d (diff)
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.
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.py2
1 files changed, 1 insertions, 1 deletions
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]