From: Eric Anholt Date: Fri, 8 Oct 2010 18:14:48 +0000 (-0700) Subject: i965: Fix new FS gen6 interpolation for sparsely-populated arrays. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cac04a93974e7ae773b84e000a2b26391ee2f4bb;p=mesa.git i965: Fix new FS gen6 interpolation for sparsely-populated arrays. We'd overwrite the same element twice. --- 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,