i965/fs: Use greater-equal cmod to implement maximum.
authorMatt Turner <mattst88@gmail.com>
Sat, 29 Aug 2015 00:10:00 +0000 (17:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 31 Aug 2015 18:51:59 +0000 (11:51 -0700)
commita4ba41638d41865ef34bf36a525efcf8102c01ee
tree77046e06a90d5693300f289379d2509dfede9c36
parentd2e3638ef9e2ddf7e02b9fbe3fa8d40c63ebe5da
i965/fs: 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.

See commit 3b7f683f.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_builder.h
src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp