mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +01:00
compiler/spirv: implement 16-bit acos
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
dbbbe24d76
commit
df118535ca
1 changed files with 3 additions and 2 deletions
|
|
@ -704,8 +704,9 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
|
|||
return;
|
||||
|
||||
case GLSLstd450Acos:
|
||||
val->ssa->def = nir_fsub(nb, nir_imm_float(nb, M_PI_2f),
|
||||
build_asin(nb, src[0], 0.08132463, -0.02363318));
|
||||
val->ssa->def =
|
||||
nir_fsub(nb, nir_imm_floatN_t(nb, M_PI_2f, src[0]->bit_size),
|
||||
build_asin(nb, src[0], 0.08132463, -0.02363318));
|
||||
return;
|
||||
|
||||
case GLSLstd450Atan:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue