lima/ppir: lower fdot in nir_opt_algebraic
authorErico Nunes <nunes.erico@gmail.com>
Sat, 27 Jul 2019 16:10:46 +0000 (18:10 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Wed, 31 Jul 2019 19:35:58 +0000 (21:35 +0200)
commit99c956fb470637304c092855520697e08b598356
treee6a8418f3b3738f9c130b6007829868fe2e28cc1
parent4a407df68297b434c4489e6d28c2dd18e9eec326
lima/ppir: lower fdot in nir_opt_algebraic

Now that we have fsum in nir, we can move fdot lowering there.
This helps reduce ppir complexity and enables the lowered ops to be part
of other nir optimizations in the optimization loop.

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/node.c
src/gallium/drivers/lima/ir/pp/ppir.h
src/gallium/drivers/lima/lima_program.c