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.
This commit is contained in:
Eric Anholt 2012-03-22 08:58:33 -07:00
parent 0fd4165261
commit fda662f4df

View file

@ -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]