ac/llvm,radeonsi: lower idiv in nir
authorQiang Yu <yuq825@gmail.com>
Sat, 15 Apr 2023 06:35:27 +0000 (14:35 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 02:01:10 +0000 (02:01 +0000)
commitf9d54b1d36bcb536f3f5efbd2135a4459698e93b
tree0e58c6e6f34379696e018e4acae650b33f6d08f9
parent5fa06828b486c5a21757d7edd6dce5914dafa7d6
ac/llvm,radeonsi: lower idiv in nir

aco does not implement these idiv ops.

nir_lower_idiv is for idiv ops <= 32bit and ported from
llvm amdgpu, so llvm do the same.

nir_lower_divmod64 is for 64bit idiv ops.

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/llvm/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_get.c
src/gallium/drivers/radeonsi/si_shader.c