OSDN Git Service

glsl: Add opcodes for atan and atan2
authorNeil Roberts <nroberts@igalia.com>
Fri, 11 Oct 2019 14:02:25 +0000 (16:02 +0200)
committerNeil Roberts <nroberts@igalia.com>
Sat, 12 Oct 2019 07:43:18 +0000 (09:43 +0200)
commit77f3fbb4aa3853785885de4f64e3d6e325b97af8
tree363aa13fa0007660bbc180be30e145a170d050ec
parent0832845dc6d0b1f1712b63d7e8aa860855b8d12a
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 <hoegsberg@google.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir_expression_operation.py
src/compiler/glsl/ir_validate.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp