st/mesa: For vertex shaders, don't emit saturate when SM 3.0 is unsupported
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Mon, 1 Dec 2014 12:59:08 +0000 (14:59 +0200)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Mon, 8 Dec 2014 18:14:26 +0000 (20:14 +0200)
commit49e04312116e4f7bbb9ebcc59247a0bcb89c3064
treee5b2efee1fe07025dfd24ffcf0eaadf3ac3a9bcf
parent4ea8c8d56ca8d6b4af36e7750186821b4973355a
st/mesa: For vertex shaders, don't emit saturate when SM 3.0 is unsupported

There is a bug in the current lowering pass implementation where we lower saturate
to clamp only for vertex shaders on drivers supporting SM 3.0. The correct behavior
is to actually lower to clamp only when we don't support saturate which happens
on drivers that don't support SM 3.0

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp