Skip to content
Commit 5fcfcdb1 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Juan A. Suarez Romero
Browse files

nir: lower_non_uniform_access: iterate over instructions safely



This pass moves instructions around and adds control-flow in the
middle of blocks. We need to use nir_foreach_instr_safe to ensure that
we iterate over instructions correctly anyway.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3bd54576 ("nir: Add a lowering pass for non-uniform resource access")
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit e04cf0b6)
parent d70d8b2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment