diff options
author | Neil Roberts <[email protected]> | 2019-10-11 16:02:25 +0200 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2019-10-12 09:43:18 +0200 |
commit | 77f3fbb4aa3853785885de4f64e3d6e325b97af8 (patch) | |
tree | 363aa13fa0007660bbc180be30e145a170d050ec /src/mesa/program | |
parent | 0832845dc6d0b1f1712b63d7e8aa860855b8d12a (diff) |
glsl: Add opcodes for atan and atan2
Adds ir_binop_atan2 and ir_unop_atan. When converting to NIR these are
expanded out using the appropriate builtin generator. If they are used
with anything else then it will just hit an assert.
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 679b46ba7ee..453dff09e45 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1412,6 +1412,8 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_unpack_sampler_2x32: case ir_unop_pack_image_2x32: case ir_unop_unpack_image_2x32: + case ir_unop_atan: + case ir_binop_atan2: assert(!"not supported"); break; |