i965/fs: Remove incorrect note of writing attr in centroid workaround.
authorEric Anholt <eric@anholt.net>
Tue, 9 Apr 2013 01:46:23 +0000 (18:46 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2013 23:32:12 +0000 (16:32 -0700)
This instruction doesn't update its IR destination, it just moves from
payload to f0.  This caused the dead code elimination pass I'm adding to
dead-code-eliminate the first step of interpolation.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index f9a50b1c18782aed6204385961c66417b76c7ff8..09817b7058b3cfbee5200a33a43dfe316400b872 100644 (file)
@@ -1064,7 +1064,7 @@ fs_visitor::emit_general_interpolation(ir_variable *ir)
                    * unlit, replace the centroid data with non-centroid
                    * data.
                    */
-                  emit(FS_OPCODE_MOV_DISPATCH_TO_FLAGS, attr);
+                  emit(FS_OPCODE_MOV_DISPATCH_TO_FLAGS);
                   fs_inst *inst = emit_linterp(attr, fs_reg(interp),
                                                interpolation_mode, false);
                   inst->predicate = BRW_PREDICATE_NORMAL;