nir: Add r600 specific sin and cos variants
authorGert Wollny <gert.wollny@collabora.com>
Wed, 10 Mar 2021 08:43:48 +0000 (09:43 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 22 Mar 2021 14:19:46 +0000 (15:19 +0100)
commit318701b80399222457abd013bf797d744675ef58
tree76a8376f6df4d71bec2d12e4262b7952d58e9833
parent0f5b3c37c5d757f6ffe994bae24071c0462bb13f
nir: Add r600 specific sin and cos variants

r600 expect the input values to be normalited by divinding by 2 *PI, so
add an opcode to be able to lower this in nir.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9452>
src/compiler/nir/nir_opcodes.py