From 2308b3bef25723b1ebff0b71f2f87dd44050cc2c Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 16 Dec 2014 11:30:12 -0800 Subject: [PATCH] i965/fs: Add a comment explaining what saturate propagation does. --- .../dri/i965/brw_fs_saturate_propagation.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 a4145ac27d9..a9966a4d648 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 -- 2.30.2