aco: run nir_lower_int64 after nir_opt_uniform_atomics

nir_opt_uniform_atomics can create 64-bit ALU instructions which need to
be lowered.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23502>
This commit is contained in:
Rhys Perry
2023-06-07 16:37:51 +01:00
committed by Marge Bot
parent 948970c1eb
commit 56eb831155

View File

@@ -308,7 +308,8 @@ init_context(isel_context* ctx, nir_shader* shader)
ctx->ub_config.max_workgroup_size[2] = 2048;
nir_divergence_analysis(shader);
nir_opt_uniform_atomics(shader);
if (nir_opt_uniform_atomics(shader) && nir_lower_int64(shader))
nir_divergence_analysis(shader);
apply_nuw_to_offsets(ctx, impl);