panfrost/mfbd: Cleanup format code selection
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 5 Jul 2019 13:26:48 +0000 (06:26 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jul 2019 13:12:09 +0000 (06:12 -0700)
commitced132d2038efdb40ef42e9467956166ac6331c5
treed5fb7eb4dcaaff60d183f76c0f84c68880318258
parentda5382c0d87990c51b947bcc6035564e96a6a364
panfrost/mfbd: Cleanup format code selection

Rather than have random variables flying around and a long if-else
chain, use a switch. They're literally *designed* for this.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_blending.c
src/gallium/drivers/panfrost/pan_mfbd.c