aco: implement 64-bit nir_op_ffloor on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jan 2020 08:00:07 +0000 (09:00 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 23 Jan 2020 13:40:45 +0000 (14:40 +0100)
commit4d9260171530f7fe9cc7a7ceffa5286355e546fc
treed349de563696cec78e0c176dd4bc5d94cf8fb7ce
parentfbd169e421157ac9e142fc367300870ed9fef993
aco: implement 64-bit nir_op_ffloor on GFX6

GFX6 doesn't have V_FLOOR_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