lima/ppir: support nir_op_ftrunc
authorErico Nunes <nunes.erico@gmail.com>
Tue, 23 Apr 2019 17:36:34 +0000 (19:36 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Thu, 2 May 2019 20:55:56 +0000 (20:55 +0000)
commit568e8fc736da97a51ae6ac0774a20279854e6958
tree8fc39a2cc271c28ce354c8a11d5474142c17de54
parent1291c68c9c44f7406404db83528001378079f4dd
lima/ppir: support nir_op_ftrunc

Support nir_op_ftrunc by turning it into a mov with a round to integer
output modifier.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/pp/lower.c
src/gallium/drivers/lima/ir/pp/nir.c
src/gallium/drivers/lima/ir/pp/ppir.h