ir_to_mesa: Remove sat to clamp lowering pass
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Mon, 8 Dec 2014 11:26:28 +0000 (13:26 +0200)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Mon, 8 Dec 2014 18:14:10 +0000 (20:14 +0200)
commit39f7b72428d1a55357a24cd26c43880595602090
tree9b0bf9bf71b89becfaf6bba659f649812d03f943
parent5d64da401c2353c77dff0b92965c6967870efdd9
ir_to_mesa: Remove sat to clamp lowering pass

Fixes an infinite loop in swrast where the lowering pass unpacks saturate into
clamp but the opt_algebraic pass tries to do the opposite.

v3 (Ian):
This is a revert of commit cfa8c1cb "ir_to_mesa: lower ir_unop_saturate" on
the ir_to_mesa.cpp portion. prog_execute.c can handle saturates in vertex
shaders, so classic swrast shouldn't need this lowering pass.

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83463
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/program/ir_to_mesa.cpp