anv: Call brw_nir_lower_rt_intrinsics_pre_trace lowering pass

Call this pass before nir_lower_shader_calls().

Fixes: d39e443e ("anv: add infrastructure for common vk_pipeline")
Cc: mesa-stable
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 006085e676)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38167>
This commit is contained in:
Sagar Ghuge 2025-10-23 22:38:26 -07:00 committed by Dylan Baker
parent 28e172e956
commit 040453857b
2 changed files with 2 additions and 1 deletions

View file

@ -614,7 +614,7 @@
"description": "anv: Call brw_nir_lower_rt_intrinsics_pre_trace lowering pass",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d39e443ef888ffd9c3385ed4c40e727868626b6b",
"notes": null

View file

@ -1054,6 +1054,7 @@ anv_shader_compile_bs(struct anv_device *device,
.should_remat_callback = should_remat_cb,
};
NIR_PASS(_, nir, brw_nir_lower_rt_intrinsics_pre_trace);
NIR_PASS(_, nir, nir_lower_shader_calls, &opts,
&resume_shaders, &num_resume_shaders, mem_ctx);
NIR_PASS(_, nir, brw_nir_lower_shader_calls, &lowering_state);