glsl: Don't apply optimization passes to builtins.
authorEric Anholt <eric@anholt.net>
Thu, 22 Mar 2012 15:58:33 +0000 (08:58 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 12 Apr 2012 01:08:21 +0000 (18:08 -0700)
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

index 0d97140174fa263f17db16845aa77ad457e4cb0a..f58196f86f4786c53862764ea25a911835e7180c 100755 (executable)
@@ -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]