mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 05:30:31 +01:00
i965/fs: ralloc fs_inst's fs_reg sources.
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
a391e99b23
commit
1b60391ed4
2 changed files with 9 additions and 1 deletions
|
|
@ -55,6 +55,9 @@ void
|
|||
fs_inst::init()
|
||||
{
|
||||
memset(this, 0, sizeof(*this));
|
||||
|
||||
this->src = ralloc_array(this, fs_reg, 3);
|
||||
|
||||
this->conditional_mod = BRW_CONDITIONAL_NONE;
|
||||
|
||||
this->dst = reg_undef;
|
||||
|
|
@ -142,6 +145,11 @@ fs_inst::fs_inst(enum opcode opcode, fs_reg dst,
|
|||
fs_inst::fs_inst(const fs_inst &that)
|
||||
{
|
||||
memcpy(this, &that, sizeof(that));
|
||||
|
||||
this->src = ralloc_array(this, fs_reg, 3);
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
this->src[i] = that.src[i];
|
||||
}
|
||||
|
||||
#define ALU1(op) \
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ public:
|
|||
bool writes_flag() const;
|
||||
|
||||
fs_reg dst;
|
||||
fs_reg src[3];
|
||||
fs_reg *src;
|
||||
|
||||
uint32_t texture_offset; /**< Texture offset bitfield */
|
||||
uint32_t offset; /* spill/unspill offset */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue