diff options
author | Iago Toral Quiroga <[email protected]> | 2018-04-18 09:15:01 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2019-01-02 07:54:05 +0100 |
commit | df118535cabe2d5149b64a23988a4987518c95fb (patch) | |
tree | f1da70cbd274944b6f26b80d8c0462b93fc109d7 /src/compiler | |
parent | dbbbe24d7656d6562dd62f389cf0bbc363cd65fc (diff) |
compiler/spirv: implement 16-bit acos
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/spirv/vtn_glsl450.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c index 1e3811f2cd1..9211bca301c 100644 --- a/src/compiler/spirv/vtn_glsl450.c +++ b/src/compiler/spirv/vtn_glsl450.c @@ -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: |