pan/midgard: Express allocated registers as offsets
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 24 Oct 2019 00:19:22 +0000 (20:19 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 25 Oct 2019 12:45:39 +0000 (08:45 -0400)
commitf98e9a2771e43efeae049c15c4ca6b579dfe125c
treec732cbd410323681e6fb64c890cc1b4213d6b7e8
parentc1d36eb115351ce5b12332b5994be41fd7242644
pan/midgard: Express allocated registers as offsets

Rather than supplying a mask/swizzle to compose with the original, just
supply the offset of the allocated register so we can directly offset
the mask/swizzle, without resorting to composition.

This is simpler, cleaner, and will generalize to non-32-bit.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_ra.c