OSDN Git Service

nir/spirv: Handle OpBranchConditional
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 May 2015 17:23:09 +0000 (10:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 31 Aug 2015 23:58:20 +0000 (16:58 -0700)
commitb7904b828115ca2e00dfdd814c9e83f2fc3df3ea
treeee89ffd3428a81da96de4d305867e6476d8d8e30
parentd216dcee94d5adf72b8d7dee794ff7b3f1cd499f
nir/spirv: Handle OpBranchConditional

We do control-flow handling as a two-step process.  The first step is to
walk the instructions list and record various information about blocks and
functions.  This is where the acutal nir_function_overload objects get
created.  We also record the start/stop instruction for each block.  Then
a second pass walks over each of the functions and over the blocks in each
function in a way that's NIR-friendly and actually parses the instructions.
src/glsl/nir/spirv_to_nir.c