projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d99b01
)
i965: Don't do 1/w multiplication in new FS for gen6
author
Eric Anholt
<eric@anholt.net>
Wed, 6 Oct 2010 18:00:31 +0000
(11:00 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 6 Oct 2010 19:13:08 +0000
(12:13 -0700)
Not needed now that we're doing barycentric.
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 6e5ea0782e15c9c2b219389713f3aa5f6a116fe5..7327c3a700eee16703ae5184da31d71bd94639c6 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-810,12
+810,14
@@
fs_visitor::emit_general_interpolation(ir_variable *ir)
}
attr.reg_offset -= type->vector_elements;
- for (unsigned int c = 0; c < type->vector_elements; c++) {
- emit(fs_inst(BRW_OPCODE_MUL,
- attr,
- attr,
- this->pixel_w));
- attr.reg_offset++;
+ if (intel->gen < 6) {
+ for (unsigned int c = 0; c < type->vector_elements; c++) {
+ emit(fs_inst(BRW_OPCODE_MUL,
+ attr,
+ attr,
+ this->pixel_w));
+ attr.reg_offset++;
+ }
}
location++;
}