i965: Use greater-equal cmod to implement maximum.
authorMatt Turner <mattst88@gmail.com>
Tue, 10 Feb 2015 05:11:46 +0000 (21:11 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 Feb 2015 05:16:43 +0000 (21:16 -0800)
commit3b7f683f3bbbd93e417a6f42ec7c609465be49de
tree6b73bc4235c54df0ee39cb52fd4f1d9ecbb0f9c2
parentf8b435ae6a27fa2274ff166639b22d0b36d68c49
i965: Use greater-equal cmod to implement maximum.

The docs specifically call out SEL with .l and .ge as the
implementations of MIN and MAX respectively. Among other things, SEL
with these conditional mods are commutative.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp