mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
aco: Add Operand(Temp, PhysReg) constructor.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7779>
This commit is contained in:
parent
4491b94d58
commit
8d37aa91d6
1 changed files with 7 additions and 0 deletions
|
|
@ -476,6 +476,13 @@ public:
|
|||
setFixed(PhysReg{128});
|
||||
}
|
||||
};
|
||||
explicit Operand(Temp r, PhysReg reg) noexcept
|
||||
{
|
||||
assert(r.id()); /* Don't allow fixing an undef to a register */
|
||||
data_.temp = r;
|
||||
isTemp_ = true;
|
||||
setFixed(reg);
|
||||
};
|
||||
explicit Operand(uint8_t v) noexcept
|
||||
{
|
||||
/* 8-bit constants are only used for copies and copies from any 8-bit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue