diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index b6aa60e84f3..40327ace2cb 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -491,17 +491,13 @@ fs_visitor::emit_general_interpolation(ir_variable *ir) emit(FS_OPCODE_LINTERP, attr, this->delta_x[barycoord_mode], this->delta_y[barycoord_mode], fs_reg(interp)); + if (intel->gen < 6) { + emit(BRW_OPCODE_MUL, attr, attr, this->pixel_w); + } } attr.reg_offset++; } - if (intel->gen < 6) { - attr.reg_offset -= type->vector_elements; - for (unsigned int k = 0; k < type->vector_elements; k++) { - emit(BRW_OPCODE_MUL, attr, attr, this->pixel_w); - attr.reg_offset++; - } - } } location++; } |