mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
nir/clone: Fix cloning indirect call instructions
Fixes:bb40284f76('nir: Add indirect calls') (cherry picked from commit88b4221519) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
parent
a2ad1789fa
commit
7fda785505
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue