Commit 8dd6a51e authored by Rhys Perry's avatar Rhys Perry Committed by Marge Bot
Browse files

aco: remove divergence check in sanitize_if()

We also need to do this if a side ends in a divergent break.
Signed-off-by: Rhys Perry's avatarRhys Perry <>
Reviewed-by: Daniel Schürmann's avatarDaniel Schürmann <>
Tested-by: Marge Bot <mesa/mesa!4461>
Part-of: <mesa/mesa!4461>
parent 57557783
......@@ -154,8 +154,7 @@ unsigned get_interp_input(nir_intrinsic_op intrin, enum glsl_interp_mode interp)
sanitize_if(nir_function_impl *impl, bool *divergent, nir_if *nif)
if (!divergent[nif->condition.ssa->index])
return false;
//TODO: skip this if the condition is uniform and there are no divergent breaks/continues?
nir_block *then_block = nir_if_last_then_block(nif);
nir_block *else_block = nir_if_last_else_block(nif);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment