i965/fs: Add a comment explaining what saturate propagation does.
authorMatt Turner <mattst88@gmail.com>
Tue, 16 Dec 2014 19:30:12 +0000 (11:30 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 16 Dec 2014 19:30:44 +0000 (11:30 -0800)
src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp

index a4145ac27d9c66fcd235e0579b2c64bd8bbaf4ea..a9966a4d6486d15d29494d59f167737dcd104dbb 100644 (file)
 #include "brw_cfg.h"
 
 /** @file brw_fs_saturate_propagation.cpp
+ *
+ * Implements a pass that propagates the SAT modifier from a MOV.SAT into the
+ * instruction that produced the source of the MOV.SAT, thereby allowing the
+ * MOV's src and dst to be coalesced and the MOV removed.
+ *
+ * For instance,
+ *
+ *    ADD     tmp, src0, src1
+ *    MOV.SAT dst, tmp
+ *
+ * would be transformed into
+ *
+ *    ADD.SAT tmp, src0, src1
+ *    MOV     dst, tmp
  */
 
 static bool