projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e800df
)
i965/vec4: Don't fix_math_operand() on Gen >= 8.
author
Matt Turner
<mattst88@gmail.com>
Mon, 23 Jun 2014 20:30:14 +0000
(13:30 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 24 Jun 2014 18:51:54 +0000
(11:51 -0700)
The emit_math?_gen? functions serve to implement workarounds for the
math instruction, none of which exist on Gen8+.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index f3316f8a148934c5402b88feb087ff2d6df7b00e..3a360d452d2e84f5ed18d57e9182bcce4fcb731b 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@
-365,7
+365,9
@@
vec4_visitor::emit_math(opcode opcode, dst_reg dst, src_reg src)
return;
}
- if (brw->gen >= 6) {
+ if (brw->gen >= 8) {
+ emit(opcode, dst, src);
+ } else if (brw->gen >= 6) {
emit_math1_gen6(opcode, dst, src);
} else {
emit_math1_gen4(opcode, dst, src);
@@
-417,7
+419,9
@@
vec4_visitor::emit_math(enum opcode opcode,
return;
}
- if (brw->gen >= 6) {
+ if (brw->gen >= 8) {
+ emit(opcode, dst, src0, src1);
+ } else if (brw->gen >= 6) {
emit_math2_gen6(opcode, dst, src0, src1);
} else {
emit_math2_gen4(opcode, dst, src0, src1);