ac/llvm,radeonsi: lower fsin/fcos in nir
authorQiang Yu <yuq825@gmail.com>
Fri, 14 Apr 2023 13:05:05 +0000 (21:05 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 02:01:10 +0000 (02:01 +0000)
commitf13f9044db26878ac77b4f760272115fac0f424e
tree449910119e4787218d61e749d7b4f10897709f62
parentf9d54b1d36bcb536f3f5efbd2135a4459698e93b
ac/llvm,radeonsi: lower fsin/fcos in nir

ACO only support nir_fsin/cos_amd.

There's some pixel changes for gl-radeonsi-stoney trace.
Different pixels:
  furmark  61 (no tolerance), 0 (1% tol.)
  gimark   93867 (no tolerance), 888 (1% tol.)
  tessmark 39 (no tolerance), 0 (1% tol.)

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22573>
src/amd/ci/traces-amd.yml
src/amd/llvm/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_nir.c