i965/fs: Add a comment explaining what saturate propagation does.

This commit is contained in:
Matt Turner 2014-12-16 11:30:12 -08:00
parent 3f6b008168
commit 2308b3bef2

View file

@ -26,6 +26,20 @@
#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