i965/fs: Emit MADs from (x + -(y * z)).
authorMatt Turner <mattst88@gmail.com>
Sat, 20 Dec 2014 05:30:16 +0000 (21:30 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 15 Jan 2015 18:10:44 +0000 (10:10 -0800)
commitc4fab711ed5bbdb6b8421a1b980215032fc795b8
treea8674b7944ac51e25119a24e19b229ccdc99e443
parent0d05d1226e0f51f703e0dcbf736375ee4f252473
i965/fs: Emit MADs from (x + -(y * z)).

Just use the negation source modifier on one of the multiplicand
arguments.

total instructions in shared programs: 5889529 -> 5880016 (-0.16%)
instructions in affected programs:     600846 -> 591333 (-1.58%)

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp