pan/decode: Verify and omit polygon size
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 19 Aug 2019 18:48:32 +0000 (11:48 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Aug 2019 15:40:53 +0000 (08:40 -0700)
commita8bd3ad47073667ee3e997623d08f1bbb77a6a6d
tree94fc64e30cd35d3cddfabb20981d815e9e32a90c
parentb45eb2775ea180fde01d0abe50f6ccf8ddb5b84d
pan/decode: Verify and omit polygon size

The polygon sizes are computed from the width/height/flags, so we can
reverse the computation and use our computation to verify the two
computation algorithms are bit-identical. If they are, we can omit the
computed fields.

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