mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
nir/spirv/glsl450: Implement Clamp/SClamp/UClamp.
This commit is contained in:
parent
034010924e
commit
083fd6ec2a
1 changed files with 7 additions and 0 deletions
|
|
@ -156,8 +156,15 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case GLSLstd450FClamp:
|
case GLSLstd450FClamp:
|
||||||
|
val->ssa->def = build_fclamp(nb, src[0], src[1], src[2]);
|
||||||
|
return;
|
||||||
case GLSLstd450UClamp:
|
case GLSLstd450UClamp:
|
||||||
|
val->ssa->def = nir_umin(nb, nir_umax(nb, src[0], src[1]), src[2]);
|
||||||
|
return;
|
||||||
case GLSLstd450SClamp:
|
case GLSLstd450SClamp:
|
||||||
|
val->ssa->def = nir_imin(nb, nir_imax(nb, src[0], src[1]), src[2]);
|
||||||
|
return;
|
||||||
|
|
||||||
case GLSLstd450Asin:
|
case GLSLstd450Asin:
|
||||||
case GLSLstd450Acos:
|
case GLSLstd450Acos:
|
||||||
case GLSLstd450Atan:
|
case GLSLstd450Atan:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue