aco: implement 64-bit nir_op_ftrunc on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jan 2020 17:39:57 +0000 (18:39 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 23 Jan 2020 13:40:34 +0000 (14:40 +0100)
commitaad5176c58d222048e7105804d11b9c58d9376fb
treecd1d6f6c978e457878b486f0f0ff886a78a5897a
parent36e7a5f5b906eea6d1c222336492d16bcecc58f7
aco: implement 64-bit nir_op_ftrunc on GFX6

GFX6 doesn't have V_TRUNC_F64, it needs to be lowered. Loosely based
on the AMDGPU LLVM backend.

Introduce a new function because it will be useful for some other
64-bit operations.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477>
src/amd/compiler/aco_instruction_selection.cpp