nir/clone: Fix cloning indirect call instructions

Fixes: bb40284f76 ('nir: Add indirect calls')
(cherry picked from commit 88b4221519)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
Daniel Schürmann 2026-02-12 09:02:46 +01:00 committed by Eric Engestrom
parent a2ad1789fa
commit 7fda785505
2 changed files with 3 additions and 1 deletions

View file

@ -5104,7 +5104,7 @@
"description": "nir/clone: Fix cloning indirect call instructions",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "bb40284f76e1b2151b79b4bfa015110f8239144e",
"notes": null

View file

@ -484,6 +484,8 @@ clone_call(clone_state *state, const nir_call_instr *call)
for (unsigned i = 0; i < ncall->num_params; i++)
__clone_src(state, ncall, &ncall->params[i], &call->params[i]);
if (call->indirect_callee.ssa)
__clone_src(state, ncall, &ncall->indirect_callee, &call->indirect_callee);
return ncall;
}