[Mesa-dev] [PATCH] glsl: Rewrite and fix min/max to saturate optimization.
mattst88 at gmail.com
Tue Feb 24 11:31:37 PST 2015
On Tue, Feb 24, 2015 at 11:22 AM, Matt Turner <mattst88 at gmail.com> wrote:
> 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 I should say pending test for the bug report, bad rendering in
Mass Effect under VMware Workstation.
More information about the mesa-dev