summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_builtin_builder.h
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2019-10-11 15:43:47 +0200
committerNeil Roberts <[email protected]>2019-10-12 09:43:17 +0200
commit2098ae16c8b4e64d0694a28f74a461b69b98a336 (patch)
treed3b4da39092862ace57a849deb9767767b3c45d6 /src/compiler/nir/nir_builtin_builder.h
parent075a96aa926e6e89795f95a6a59693f44d9ac970 (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_builtin_builder.h')
-rw-r--r--src/compiler/nir/nir_builtin_builder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_builtin_builder.h b/src/compiler/nir/nir_builtin_builder.h
index 39a1e0bd3cd..519938f8bfe 100644
--- a/src/compiler/nir/nir_builtin_builder.h
+++ b/src/compiler/nir/nir_builtin_builder.h
@@ -41,6 +41,8 @@ nir_ssa_def* nir_rotate(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y);
nir_ssa_def* nir_smoothstep(nir_builder *b, nir_ssa_def *edge0,
nir_ssa_def *edge1, nir_ssa_def *x);
nir_ssa_def* nir_upsample(nir_builder *b, nir_ssa_def *hi, nir_ssa_def *lo);
+nir_ssa_def* nir_atan(nir_builder *b, nir_ssa_def *y_over_x);
+nir_ssa_def* nir_atan2(nir_builder *b, nir_ssa_def *y, nir_ssa_def *x);
static inline nir_ssa_def *
nir_nan_check2(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y, nir_ssa_def *res)