lima/gp: Support exp2 and log2
authorConnor Abbott <cwabbott0@gmail.com>
Sun, 21 Apr 2019 19:46:46 +0000 (21:46 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jul 2019 21:01:15 +0000 (23:01 +0200)
commit11a49f289d17128c24dd9aa339b940b819cb7e41
treef8bd591c1620306fb0681bd821438bee6d09b3ea
parentc2f48d8f324a7577a63f7f4ad4628564f02687b0
lima/gp: Support exp2 and log2

log2 is tricky because there cannot be a move between complex1 and
postlog2. We can't guarantee that scheduling complex1 will succeed when
we schedule postlog2, so we try to schedule complex1 and if it fails we
back out by rewriting the postlog2 as a move and introducing a new
postlog2 so that we can try again later.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Acked-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/gp/codegen.c
src/gallium/drivers/lima/ir/gp/lower.c
src/gallium/drivers/lima/ir/gp/nir.c
src/gallium/drivers/lima/ir/gp/node.c
src/gallium/drivers/lima/ir/gp/scheduler.c