summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-10-08 11:14:48 -0700
committerEric Anholt <[email protected]>2010-10-08 11:59:19 -0700
commitcac04a93974e7ae773b84e000a2b26391ee2f4bb (patch)
treea9bcc7201204d22ae2783dec7e8d4e134d387283 /src
parent624ce6f61b70e033fe367da791ef5a9881887685 (diff)
i965: Fix new FS gen6 interpolation for sparsely-populated arrays.
We'd overwrite the same element twice.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 710eb0bb721..bc49ee8fe0d 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -813,9 +813,9 @@ fs_visitor::emit_general_interpolation(ir_variable *ir)
fs_reg(interp)));
attr.reg_offset++;
}
- attr.reg_offset -= type->vector_elements;
if (intel->gen < 6) {
+ attr.reg_offset -= type->vector_elements;
for (unsigned int c = 0; c < type->vector_elements; c++) {
emit(fs_inst(BRW_OPCODE_MUL,
attr,