mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
pan/bi: Generalize data register setting
So we can use it for stores too. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
This commit is contained in:
parent
9458b017a9
commit
c57ac9d136
1 changed files with 15 additions and 3 deletions
|
|
@ -355,14 +355,26 @@ bi_pack_registers(struct bi_registers regs)
|
|||
}
|
||||
|
||||
static void
|
||||
bi_write_data_register(bi_clause *clause, bi_instruction *ins)
|
||||
bi_set_data_register(bi_clause *clause, unsigned idx)
|
||||
{
|
||||
assert(ins->dest & BIR_INDEX_REGISTER);
|
||||
unsigned reg = ins->dest & ~BIR_INDEX_REGISTER;
|
||||
assert(idx & BIR_INDEX_REGISTER);
|
||||
unsigned reg = idx & ~BIR_INDEX_REGISTER;
|
||||
assert(reg <= 63);
|
||||
clause->data_register = reg;
|
||||
}
|
||||
|
||||
static void
|
||||
bi_read_data_register(bi_clause *clause, bi_instruction *ins)
|
||||
{
|
||||
bi_set_data_register(clause, ins->src[0]);
|
||||
}
|
||||
|
||||
static void
|
||||
bi_write_data_register(bi_clause *clause, bi_instruction *ins)
|
||||
{
|
||||
bi_set_data_register(clause, ins->dest);
|
||||
}
|
||||
|
||||
static enum bifrost_packed_src
|
||||
bi_get_src_reg_port(struct bi_registers *regs, unsigned src)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue