diff options
author | Matt Turner <mattst88@gmail.com> | 2014-12-16 11:30:12 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-12-16 11:30:44 -0800 |
commit | 2308b3bef25723b1ebff0b71f2f87dd44050cc2c (patch) | |
tree | 02644440726c14a00df58826dda032d02accba65 /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | 3f6b008168d2edcb673fefba53031d4bfaa0982e (diff) | |
download | external_mesa3d-2308b3bef25723b1ebff0b71f2f87dd44050cc2c.zip external_mesa3d-2308b3bef25723b1ebff0b71f2f87dd44050cc2c.tar.gz external_mesa3d-2308b3bef25723b1ebff0b71f2f87dd44050cc2c.tar.bz2 |
i965/fs: Add a comment explaining what saturate propagation does.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp index a4145ac..a9966a4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -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 |