radv,radeonsi: call ac_nir_lower_global_access and nir_lower_int64 for gs copy shaders

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36936>
This commit is contained in:
Daniel Schürmann
2025-09-17 17:11:03 +02:00
committed by Marge Bot
parent a02eb9a360
commit 2622a3bc47
2 changed files with 6 additions and 0 deletions

View File

@@ -2440,6 +2440,9 @@ radv_create_gs_copy_shader(struct radv_device *device, struct vk_pipeline_cache
AC_HW_VERTEX_SHADER, 64, 64, &gs_copy_stage.args.ac);
NIR_PASS(_, nir, radv_nir_lower_abi, pdev->info.gfx_level, &gs_copy_stage, gfx_state, pdev->info.address32_hi);
NIR_PASS(_, nir, ac_nir_lower_global_access);
NIR_PASS(_, nir, nir_lower_int64);
struct radv_graphics_pipeline_key key = {0};
bool dump_shader = radv_can_dump_shader(device, nir);

View File

@@ -1863,6 +1863,9 @@ si_nir_generate_gs_copy_shader(struct si_screen *sscreen,
sscreen->info.has_ls_vgpr_init_bug, AC_HW_VERTEX_SHADER, 64, 64,
&linked.consumer.args.ac);
NIR_PASS(_, nir, ac_nir_lower_global_access);
NIR_PASS(_, nir, nir_lower_int64);
si_nir_opts(gs_selector->screen, nir, false);
NIR_PASS(_, nir, nir_lower_load_const_to_scalar);