i965/fs: Emit MADs from (x + abs(y * z)).
authorMatt Turner <mattst88@gmail.com>
Tue, 13 Jan 2015 21:35:15 +0000 (13:35 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 15 Jan 2015 18:10:44 +0000 (10:10 -0800)
commit3654b6d43ceef9f74465ee20404513892761b8da
tree79c4734501c3e0317f25111ce77b59f94b9c8daf
parentc4fab711ed5bbdb6b8421a1b980215032fc795b8
i965/fs: Emit MADs from (x + abs(y * z)).

Just use the abs source modifier on both of the multiplicand
arguments.

instructions in affected programs:     300 -> 296 (-1.33%)

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