summaryrefslogtreecommitdiff
path: root/common.py
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-22 18:15:20 -0700
committerEric Anholt <eric@anholt.net>2010-08-22 18:34:46 -0700
commit6606fde3ec18288ecc4c6ce6d3fd32224a6c5248 (patch)
tree125413c14e7620e665b21c71d668df240d145c3d /common.py
parent137b8397fa5cc5d70e86a4b14d6be9326340f584 (diff)
glsl: Convert constant folding to the rvalue visitor.
This should be mostly a noop, except that a plain dereference of a variable that is not part of a constant expression could now get "constant folded". I expect that for all current backends this will be either a noop, or possibly a win when it provokes more ir_algebraic. It'll also ensure that when new features are added, tree walking will work normally. Before this, constants weren't getting folded inside of loops.
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions