i965/fs: Fix saturate on MAD and LRP with the NIR backend.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Feb 2015 08:50:23 +0000 (00:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Feb 2015 08:34:57 +0000 (00:34 -0800)
commitccbe15f3325d7a6d04d0ea18227a08f53decec16
treef8afa6e2e5f019ac208f42232d041250baf89f2b
parent1b029f8a4aa85546a8932f9005373c6c34a0eb7a
i965/fs: Fix saturate on MAD and LRP with the NIR backend.

Fixes misrendering in "Witcher 2" with INTEL_USE_NIR=1, and probably
many other programs.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp