There are no more producers of legacy atomics so these calls are inert.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23036>
radv_optimize_nir(nir, false);
}
- /* Temporary stopgap until legacy atomics are removed in the core */
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
-
-
return nir;
}
NIR_PASS_V(nir, nir_opt_sink, move_all);
NIR_PASS_V(nir, nir_opt_move, move_all);
NIR_PASS_V(nir, agx_nir_lower_ubo);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
NIR_PASS_V(nir, agx_nir_lower_shared_bitsize);
}
static void
v3d_lower_nir(struct v3d_compile *c)
{
- /* FIXME: drop once GLSL/SPIR-V produce the new intrinsics. */
- NIR_PASS(_, c->s, nir_lower_legacy_atomics);
-
struct nir_lower_tex_options tex_options = {
.lower_txd = true,
.lower_tg4_broadcom_swizzle = true,
assert(pipeline->shared_data &&
pipeline->shared_data->maps[p_stage->stage]);
- /* Temporary stopgap until legacy atomics are removed in core */
- NIR_PASS_V(p_stage->nir, nir_lower_legacy_atomics);
-
NIR_PASS_V(p_stage->nir, nir_vk_lower_ycbcr_tex,
lookup_ycbcr_conversion, layout);
OPT_V(s, nir_remove_dead_variables, nir_var_function_temp, NULL);
- /* Temporary stopgap until the core is transitioned to unified atomics */
- OPT_V(s, nir_lower_legacy_atomics);
-
if (ir3_shader_debug & IR3_DBG_DISASM) {
mesa_logi("----------------------");
nir_log_shaderi(s);
nir->info.stage == MESA_SHADER_GEOMETRY)
tu_gather_xfb_info(nir, &so_info);
- /* Temporary stopgap until legacy atomics are removed */
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
-
NIR_PASS_V(nir, tu_lower_io, dev, shader, layout);
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
nir_lower_locals_to_regs(nir);
nir_remove_dead_derefs(nir);
nir_remove_dead_variables(nir, nir_var_function_temp, NULL);
- nir_lower_legacy_atomics(nir);
if (is_aos(bld_base)) {
nir_move_vec_src_uses_to_dest(nir);
source_mods |= nir_lower_fabs_source_mods;
NIR_PASS_V(s, nir_lower_to_source_mods, source_mods);
- NIR_PASS_V(s, nir_lower_legacy_atomics);
-
NIR_PASS_V(s, nir_convert_from_ssa, true);
NIR_PASS_V(s, nir_lower_vec_to_movs, ntt_vec_to_mov_writemask_cb, NULL);
NIR_PASS_V(nir, r600_nir_lower_pack_unpack_2x16);
NIR_PASS_V(nir, r600_lower_shared_io);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
NIR_PASS_V(nir, r600_nir_lower_atomics);
if (rs->b.gfx_level == CAYMAN)
si_late_optimize_16bit_samplers(sscreen, nir);
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp, NULL);
-
- /* Temporary stopgap until legacy atomics are removed in the core */
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
}
static bool si_mark_divergent_texture_non_uniform(struct nir_shader *nir)
NIR_PASS_V(nir, nir_lower_fragcolor,
nir->info.fs.color_is_dual_source ? 1 : 8);
- /* Temporary stop gap until glsl-to-nir produces unified atomics */
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
-
NIR_PASS_V(nir, lower_64bit_vertex_attribs);
bool needs_size = analyze_io(ret, nir);
NIR_PASS_V(nir, unbreak_bos, ret, needs_size);
NIR_PASS_V(nir, nir_remove_dead_variables,
nir_var_uniform | nir_var_image, NULL);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
scan_pipeline_info(shader, layout, nir);
optimize(nir);
OPT(nir_lower_frexp);
- OPT(nir_lower_legacy_atomics);
-
if (is_scalar) {
OPT(nir_lower_alu_to_scalar, NULL, NULL);
}
bool
dxil_nir_lower_atomics_to_dxil(nir_shader *nir)
{
- bool progress = nir_lower_legacy_atomics(nir);
+ bool progress = false;
foreach_list_typed(nir_function, func, node, &nir->functions) {
if (!func->is_entrypoint)
type_size, (nir_lower_io_options)0);
NIR_PASS_V(nir, nir_lower_subgroups, &subgroup_options);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
struct nir_lower_tex_options tex_options = {};
tex_options.lower_txp = ~0;
NIR_PASS(progress, nir, nir_opt_cse);
}
- NIR_PASS(progress, nir, nir_lower_legacy_atomics);
NIR_PASS(progress, nir, nir_lower_load_const_to_scalar);
NIR_PASS(progress, nir, nir_opt_dce);
if (quirks & MIDGARD_BROKEN_LOD)
NIR_PASS_V(nir, midgard_nir_lod_errata);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
-
/* Midgard image ops coordinates are 16-bit instead of 32-bit */
NIR_PASS_V(nir, midgard_nir_lower_image_bitsize);
.lower_invalid_implicit_lod = true,
};
NIR_PASS_V(nir, nir_lower_tex, &lower_tex_options);
- NIR_PASS_V(nir, nir_lower_legacy_atomics);
NIR_PASS_V(nir, panvk_per_arch(nir_lower_descriptors), dev, layout,
&shader->has_img_access);