nir/builder: Move nir_atan and nir_atan2 from SPIR-V translator
authorNeil Roberts <nroberts@igalia.com>
Fri, 11 Oct 2019 13:43:47 +0000 (15:43 +0200)
committerNeil Roberts <nroberts@igalia.com>
Sat, 12 Oct 2019 07:43:17 +0000 (09:43 +0200)
commit2098ae16c8b4e64d0694a28f74a461b69b98a336
treed3b4da39092862ace57a849deb9767767b3c45d6
parent075a96aa926e6e89795f95a6a59693f44d9ac970
nir/builder: Move nir_atan and nir_atan2 from SPIR-V translator

Moves build_atan and build_atan2 into nir_builtin_builder. The goal is
to be able to use this from the GLSL translator too.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/nir/nir_builtin_builder.c
src/compiler/nir/nir_builtin_builder.h
src/compiler/spirv/vtn_glsl450.c