[Mesa-dev] [PATCH 1/5] glsl: Don't apply optimization passes to builtins.

Eric Anholt eric at anholt.net
Mon Mar 26 13:59:05 PDT 2012


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 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 0d97140..f58196f 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]
 
-- 
1.7.9.1



More information about the mesa-dev mailing list