Browse Source

shader: Properly insert Prologue instruction

pull/15/merge
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
d3dad6b632
  1. 3
      src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

3
src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

@ -635,7 +635,8 @@ public:
block_list{block_list_} {
Visit(root_stmt, nullptr, nullptr);
IR::IREmitter ir{*block_list.front()};
IR::Block& first_block{*block_list.front()};
IR::IREmitter ir{first_block, first_block.begin()};
ir.Prologue();
}

Loading…
Cancel
Save