mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 08:48:14 +02:00
dxil/nir: Remove nir_jump_continue from lower_subgroup_scan()
We are going to disallow continue statements without loop continue constructs. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39942>
This commit is contained in:
parent
ebfb9b9479
commit
7e6dfb9f74
1 changed files with 3 additions and 2 deletions
|
|
@ -2113,10 +2113,11 @@ lower_subgroup_scan(nir_builder *b, nir_intrinsic_instr *intr, void *data)
|
|||
nir_pop_if(b, if_active_thread);
|
||||
|
||||
nir_store_var(b, loop_counter_var, nir_iadd_imm(b, loop_counter, 1), 1);
|
||||
nir_jump(b, nir_jump_continue);
|
||||
|
||||
nir_push_else(b, nif);
|
||||
nir_jump(b, nir_jump_break);
|
||||
nir_pop_if(b, nif);
|
||||
|
||||
nir_jump(b, nir_jump_break);
|
||||
nir_pop_loop(b, loop);
|
||||
|
||||
result = nir_load_var(b, result_var);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue