Skip to content
Snippets Groups Projects
Commit afa7a851 authored by Abdiel Janulgue's avatar Abdiel Janulgue Committed by Emil Velikov
Browse files

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: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
(cherry picked from commit 49e04312)
Nominated-by: default avatarMatt Turner <mattst88@gmail.com>
parent d880aa57
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment