pan/decode: Validate swizzles against format
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 20 Aug 2019 20:59:26 +0000 (13:59 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Aug 2019 15:40:54 +0000 (08:40 -0700)
commit2208eb9b728ae359e323a923f06688e2ae182918
treed5dcf38a8d05c7fdbaaefef34365849eec314fbd
parentb233012d445836c9be9be2a0e2b2e87af34b5fc7
pan/decode: Validate swizzles against format

We want to make sure we don't access a component in the swizzle that
doesn't exist in the format, since that is (as far as I know) undefined.

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