nir: Add an optional expression controlling nir_algebraic xforms.
authorEric Anholt <eric@anholt.net>
Tue, 3 Feb 2015 00:20:06 +0000 (16:20 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Feb 2015 22:47:50 +0000 (14:47 -0800)
commit955a6bb57d6ca5a679021bcfe43c7cae1863f299
tree4906d56489446b0aa6566c0b5f31135105e9d77d
parentf90bb54734bf03be6c736812226e3f65f2e11519
nir: Add an optional expression controlling nir_algebraic xforms.

This will be used so that we can customize the transforms for the target
GPU, so we don't un-lower expressions that had already been lowered (or
introduce new lowering transformations that not all GPUs want)

v2: Drop the complication of having the condition->index dictionary, since
    we don't actually expect there to be many different conditions (change
    by Kenneth).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_algebraic.py