panfrost/midgard: Hoist mask field
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 2 Jul 2019 01:51:48 +0000 (18:51 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jul 2019 13:12:04 +0000 (06:12 -0700)
commitf8b18a4277cc96b2048c9b74fb0d39e2112bb4c1
tree60ae5190a39636e4e2c5dd36cd691498c78b3e05
parente69cf1fed908bcc0f3df8ca6afb66647bdfac3c4
panfrost/midgard: Hoist mask field

Share a single mask field in midgard_instruction with a unified format,
rather than using separate masks for each instruction tag with
hardware-specific formats. Eliminates quite a bit of duplicated code and
will enable vec8/vec16 masks as well (which don't map as cleanly to the
hardware as we might like).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/compiler.h
src/gallium/drivers/panfrost/midgard/helpers.h
src/gallium/drivers/panfrost/midgard/midgard_compile.c
src/gallium/drivers/panfrost/midgard/midgard_emit.c
src/gallium/drivers/panfrost/midgard/midgard_ops.h
src/gallium/drivers/panfrost/midgard/midgard_ra.c
src/gallium/drivers/panfrost/midgard/midgard_schedule.c