projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24e1cc
)
i965/fs: Don't fix_math_operand() on Gen >= 8.
author
Matt Turner
<mattst88@gmail.com>
Mon, 23 Jun 2014 20:30:15 +0000
(13:30 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 24 Jun 2014 18:51:54 +0000
(11:51 -0700)
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
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 d7b969e46c58d05a995a3cf5f5b66e9bc556c790..185a1f68c08a9018664a2032f0084c08e8b9d53a 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-1386,7
+1386,7
@@
fs_visitor::emit_math(enum opcode opcode, fs_reg dst, fs_reg src)
* Gen 6 hardware ignores source modifiers (negate and abs) on math
* instructions, so we also move to a temp to set those up.
*/
- if (brw->gen
>= 6
)
+ if (brw->gen
== 6 || brw->gen == 7
)
src = fix_math_operand(src);
fs_inst *inst = emit(opcode, dst, src);
@@
-1418,7
+1418,9
@@
fs_visitor::emit_math(enum opcode opcode, fs_reg dst, fs_reg src0, fs_reg src1)
return NULL;
}
- if (brw->gen >= 6) {
+ if (brw->gen >= 8) {
+ inst = emit(opcode, dst, src0, src1);
+ } else if (brw->gen >= 6) {
src0 = fix_math_operand(src0);
src1 = fix_math_operand(src1);