mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 23:20:08 +01:00
i965/vec4: Add constructor of src_reg from a fixed hardware reg.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
98e048cf32
commit
7f00c5f1a3
2 changed files with 9 additions and 0 deletions
|
|
@ -112,6 +112,14 @@ src_reg::src_reg(int32_t i)
|
|||
this->imm.i = i;
|
||||
}
|
||||
|
||||
src_reg::src_reg(struct brw_reg reg)
|
||||
{
|
||||
init();
|
||||
|
||||
this->file = HW_REG;
|
||||
this->fixed_hw_reg = reg;
|
||||
}
|
||||
|
||||
src_reg::src_reg(dst_reg reg)
|
||||
{
|
||||
init();
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@ public:
|
|||
src_reg(float f);
|
||||
src_reg(uint32_t u);
|
||||
src_reg(int32_t i);
|
||||
src_reg(struct brw_reg reg);
|
||||
|
||||
bool equals(src_reg *r);
|
||||
bool is_zero() const;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue