projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fbebd6
)
i965/fs: Move setting opcode = NOP to its one useful location.
author
Matt Turner
<mattst88@gmail.com>
Thu, 20 Feb 2014 16:19:19 +0000
(08:19 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Sat, 22 Feb 2014 06:51:33 +0000
(22:51 -0800)
All other callers of init() immediately set opcode to something else.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 2ffeffa9f99909d2604d5159c04259087379c8c9..dfb59aa582b6be8ea7f18bd5ce0e900b60eaeaf3 100644
(file)
--- 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)