projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd4165
)
glsl: Don't apply optimization passes to builtins.
author
Eric Anholt
<eric@anholt.net>
Thu, 22 Mar 2012 15:58:33 +0000
(08:58 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/glsl/builtins/tools/generate_builtins.py
b/src/glsl/builtins/tools/generate_builtins.py
index 0d97140174fa263f17db16845aa77ad457e4cb0a..f58196f86f4786c53862764ea25a911835e7180c 100755
(executable)
--- 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-
l
ir'] + args
+ command = [compiler, '--dump-
h
ir'] + args
p = Popen(command, 1, stdout=PIPE, shell=False)
output = p.communicate()[0]