summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-10-06 11:00:31 -0700
committerEric Anholt <[email protected]>2010-10-06 12:13:08 -0700
commitfe6efc25ed3c1edf26073c4e6b6a3a45c857c1eb (patch)
treee78357d944d1d8183862efac07fb79d492ece9b6 /src/mesa/drivers/dri/i965
parent5d99b01501128c7179cdd6aa29bc8953d0d81e75 (diff)
i965: Don't do 1/w multiplication in new FS for gen6
Not needed now that we're doing barycentric.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 6e5ea0782e1..7327c3a700e 100644
--- 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++;
}