vc4: Switch to using Mesa's register allocator.
authorEric Anholt <eric@anholt.net>
Mon, 22 Sep 2014 19:16:16 +0000 (12:16 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Sep 2014 20:40:10 +0000 (13:40 -0700)
commit71e5ba9c011939c962018af7f3ca78b600c95148
treebc342719a67f433269ffeae84b31fb4799433a2d
parent0148690ac7b954e1958b746fb3d33f253aa38ccb
vc4: Switch to using Mesa's register allocator.

This will let me more reliably allocate a-file registers, which are going
to be even more in demand when I start using a-file unpacks.

Also fixes a bug where the reservation of payload registers (FRAG_Z/W) was
off by one but just caused failure to register allocate at all if the
off-by-one was fixed.
src/gallium/drivers/vc4/Makefile.am
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qpu_emit.c
src/gallium/drivers/vc4/vc4_register_allocate.c