i965/fs: Don't propagate saturation modifiers if there are source modifiers.
authorMatt Turner <mattst88@gmail.com>
Thu, 3 Apr 2014 20:57:44 +0000 (13:57 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 5 Apr 2014 16:47:36 +0000 (09:47 -0700)
commit92d03f7f2878b15a41077e1ea11962a47c1d9b29
treeb99aecfbad8f716dd638a7c92d0fb86b779fbc29
parent7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55
i965/fs: Don't propagate saturation modifiers if there are source modifiers.

Which would lead to translating

   mad     vgrf9:F,  vgrf3:F, u0:F, vgrf6:F
   mov.sat vgrf7:F, -vgrf9:F

into

   mad.sat vgrf9:F,  vgrf3:F, u0:F, vgrf6:F
   mov     vgrf7:F, -vgrf9:F

Fixes some lighting effects in Dota2.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76749
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp