mesa/src
Matt Turner cb25087c7b glsl: Rewrite and fix min/max to saturate optimization.
There were some bugs, and the code was really difficult to follow. We
would optimize

   min(max(x, b), 1.0) into max(sat(x), b)

but not pay attention to the order of min/max and also do

   max(min(x, b), 1.0) into max(sat(x), b)

Corrects four shaders from Champions of Regnum that do

   min(max(x, 1), 10)

and corrects rendering of Mass Effect under VMware Workstation.

Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89180
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-02-25 08:44:49 -08:00
..
egl egl, wayland: RGB565 format support on Back-buffer 2015-02-23 14:07:02 -08:00
gallium freedreno: drop ARRAY_SIZE macro 2015-02-25 08:37:58 -05:00
gbm gbm: Define _DEFAULT_SOURCE to avoid warning 2015-01-16 21:54:54 -08:00
getopt
glsl glsl: Rewrite and fix min/max to saturate optimization. 2015-02-25 08:44:49 -08:00
glx glx: Fix returned values of GLX_RENDERER_PREFERRED_PROFILE_MESA 2015-02-25 08:23:38 +01:00
gtest gtest: Add headers to distribution. 2014-12-12 12:11:46 -08:00
hgl hgl: traverse add-on entries 2014-12-10 14:01:01 +00:00
loader loader: not having a pci-id should not be a warn 2015-02-21 17:11:02 -05:00
mapi glapi: add ARB_gpu_shader_fp64 (v2) 2015-02-19 00:28:33 -05:00
mesa i965: Don't force x-tiling for 16-bpp formats on Gen>7 2015-02-25 13:19:34 +00:00
util ra: Disable round-robin strategy for optimistically colorable nodes. 2015-02-23 20:55:40 +02:00
Makefile.am glsl: Build a libglsl_util library. 2015-01-23 14:28:44 -08:00
SConscript egl: Fix non-dri SCons builds re #87657 2014-12-25 10:34:49 -05:00