mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 01:10:16 +01:00
pan/bi: Add bi_rewrite_index_src_single helper
Ported from Midgard. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
parent
9e915fd5f7
commit
1db83fc75d
1 changed files with 9 additions and 0 deletions
|
|
@ -174,6 +174,15 @@ bi_install_registers(bi_context *ctx, struct lcra_state *l)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
bi_rewrite_index_src_single(bi_instruction *ins, unsigned old, unsigned new)
|
||||
{
|
||||
bi_foreach_src(ins, i) {
|
||||
if (ins->src[i] == old)
|
||||
ins->src[i] = new;
|
||||
}
|
||||
}
|
||||
|
||||
static bi_instruction
|
||||
bi_spill(unsigned node, uint64_t offset, unsigned channels)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue