diff options
author | Jason Ekstrand <[email protected]> | 2017-02-15 08:42:45 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-01 17:00:20 -0800 |
commit | e27c716ad70c50597bcec5bfa71d8926460109ff (patch) | |
tree | 04ff670936e3f03b4e2ebcbc4b1750c35b44cf22 /src/compiler/glsl | |
parent | d5b355ce5fd6dbff61f1f471c38aa62db9d621c4 (diff) |
nir/builder: Add support for easily building control-flow
Each of the pop functions (and push_else) take a control flow parameter as
their second argument. If NULL, it assumes that the builder is in a block
that's a direct child of the control-flow node you want to pop off the
virtual stack. This is what 90% of consumers will want. The SPIR-V pass,
however, is a bit more "creative" about how it walks the CFG and it needs
to be able to pop multiple levels at a time, hence the argument.
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
0 files changed, 0 insertions, 0 deletions