diff options
author | Kenneth Graunke <[email protected]> | 2017-01-08 23:03:25 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-01-09 16:52:02 -0800 |
commit | 203c1287816f2a73475a48dd72a9a2ed03a42ac1 (patch) | |
tree | 89506b9514fb2abbf12867544554ae48273f486d /src/compiler/nir/nir_sweep.c | |
parent | 230b756f865e2d6ae17ff9568c8dcb718840c7b2 (diff) |
spirv: Move cursor before calling vtn_ssa_value() in phi 2nd pass.
vtn_ssa_value() can produce variable loads, and the cursor might
be after a return statement, causing nir_builder assert failures
about not inserting instructions after a jump.
This fixes:
dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_if
dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_switch
Cc: "13.0 12.0" <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_sweep.c')
0 files changed, 0 insertions, 0 deletions