diff options
author | Kenneth Graunke <[email protected]> | 2015-08-24 17:30:08 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-08-27 13:36:57 -0700 |
commit | c44d50775209266b5c8bad0ab7a7c4ccd7db14a4 (patch) | |
tree | b29c709806586fba2feff6e85a0744608e0e612a /src/glsl/nir/nir_control_flow.h | |
parent | bcae4640c89bc2775d1a85b2b27d2787cac8f843 (diff) |
nir: Strengthen "no jumps" assertions in instruction insertion API.
Jumps must be the last instruction in a block, so inserting another
instruction after a jump is illegal.
Previously, we only checked this when the new instruction being inserted
was a jump. This is a red herring - inserting *any* kind of instruction
after a jump is illegal.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Acked-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_control_flow.h')
0 files changed, 0 insertions, 0 deletions