radv: Use ac_nir_lower_intrinsics_to_args.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24005>
This commit is contained in:
Timur Kristóf
2023-07-03 17:07:32 +02:00
committed by Marge Bot
parent 6551be9c6e
commit 9bade0205a
2 changed files with 4 additions and 0 deletions

View File

@@ -689,6 +689,8 @@ radv_postprocess_nir(struct radv_device *device, const struct radv_pipeline_layo
NIR_PASS_V(stage->nir, nir_lower_io_to_scalar, nir_var_mem_global);
NIR_PASS(_, stage->nir, ac_nir_lower_global_access);
NIR_PASS_V(stage->nir, ac_nir_lower_intrinsics_to_args, gfx_level, radv_select_hw_stage(&stage->info, gfx_level),
&stage->args.ac);
NIR_PASS_V(stage->nir, radv_nir_lower_abi, gfx_level, &stage->info, &stage->args, pipeline_key,
device->physical_device->rad_info.address32_hi);
radv_optimize_nir_algebraic(