i965/fs: Use greater-equal cmod to implement maximum

Graphics / Mesa 3D Graphics Library / Mesa - Matt Turner [gmail.com] - 31 August 2015 13:51 UTC

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.

a4ba416 i965/fs: Use greater-equal cmod to implement maximum.
src/mesa/drivers/dri/i965/brw_fs_builder.h | 2 ++
.../drivers/dri/i965/brw_fs_surface_builder.cpp | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share