mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
i965/fs: Move setting opcode = NOP to its one useful location.
All other callers of init() immediately set opcode to something else. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
4fbebd6e65
commit
070f20272f
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,6 @@ void
|
||||||
fs_inst::init()
|
fs_inst::init()
|
||||||
{
|
{
|
||||||
memset(this, 0, sizeof(*this));
|
memset(this, 0, sizeof(*this));
|
||||||
this->opcode = BRW_OPCODE_NOP;
|
|
||||||
this->conditional_mod = BRW_CONDITIONAL_NONE;
|
this->conditional_mod = BRW_CONDITIONAL_NONE;
|
||||||
|
|
||||||
this->dst = reg_undef;
|
this->dst = reg_undef;
|
||||||
|
|
@ -70,6 +69,7 @@ fs_inst::init()
|
||||||
fs_inst::fs_inst()
|
fs_inst::fs_inst()
|
||||||
{
|
{
|
||||||
init();
|
init();
|
||||||
|
this->opcode = BRW_OPCODE_NOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
fs_inst::fs_inst(enum opcode opcode)
|
fs_inst::fs_inst(enum opcode opcode)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue