mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +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/39969>
This commit is contained in:
parent
2108f04b40
commit
7af39f6938
2 changed files with 3 additions and 1 deletions
|
|
@ -1794,7 +1794,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
|
||||
|
|
|
|||
|
|
@ -485,6 +485,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