diff --git a/.pick_status.json b/.pick_status.json index d8912d8f477..c979b836ccf 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4524,7 +4524,7 @@ "description": "brw: Call nir_opt_algebraic_late in brw_nir_create_raygen_trampoline", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "442daeb54a2e43bd450ebbb37fc05001f4acd08f", "notes": null diff --git a/src/intel/compiler/brw/brw_nir_rt.c b/src/intel/compiler/brw/brw_nir_rt.c index e54d6431364..8eef9f6e2d3 100644 --- a/src/intel/compiler/brw/brw_nir_rt.c +++ b/src/intel/compiler/brw/brw_nir_rt.c @@ -518,6 +518,8 @@ brw_nir_create_raygen_trampoline(const struct brw_compiler *compiler, NIR_PASS(_, nir, brw_nir_lower_cs_intrinsics, devinfo, NULL); brw_nir_optimize(nir, devinfo); + /* brw_nir_optimize undoes late lowerings. */ + NIR_PASS(_, nir, nir_opt_algebraic_late); return nir; }