lima/gpir: Fix postlog2 fixup handling
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 18 Sep 2019 05:29:45 +0000 (12:29 +0700)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 24 Sep 2019 06:43:06 +0000 (08:43 +0200)
commit96c31d9a555c46b380ea861c08b620eb556954bf
tree2f843520edcd7616abea0093d9c5447aca82e318
parent1cd1cce03523dcf1ca680b753ea0e32b0f8bc549
lima/gpir: Fix postlog2 fixup handling

We guarantee that a complex1 op is always used by postlog2 directly by
rewriting the postlog2 op to be a move when there would be a move
inserted between them. But we weren't doing this in all circumstances
where there might be a move. Move the logic to place_move() so that it
always happens. Fixes a few log tests that happened to start failing due
to changes in the register allocator leading to a different scheduling
order.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/gp/scheduler.c