diff options
author | Matt Turner <[email protected]> | 2014-02-20 08:19:19 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-02-21 22:51:33 -0800 |
commit | 070f20272fcfdcafe5d843d240e876ef5cfda560 (patch) | |
tree | d9d7280d7e2dc803208085fbf836baae63bbe884 | |
parent | 4fbebd6e65d8030131cdd71e273016bd2213ac77 (diff) |
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 <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2ffeffa9f99..dfb59aa582b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -55,7 +55,6 @@ void fs_inst::init() { memset(this, 0, sizeof(*this)); - this->opcode = BRW_OPCODE_NOP; this->conditional_mod = BRW_CONDITIONAL_NONE; this->dst = reg_undef; @@ -70,6 +69,7 @@ fs_inst::init() fs_inst::fs_inst() { init(); + this->opcode = BRW_OPCODE_NOP; } fs_inst::fs_inst(enum opcode opcode) |