pan/mdg: Use analysis to set .cont/.last flags
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 12 May 2020 17:34:52 +0000 (13:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 22:30:41 +0000 (22:30 +0000)
commit344dd914972f9ddcef814a3cf08f832708c33146
treec4e91b667e3f42c8ec86120284fc0b21120bf08e
parent9a7f0e268b7baeb92d8d7d2989beb43550262406
pan/mdg: Use analysis to set .cont/.last flags

Corresponds roughly to what we analyze. Note that "terminate AND
execute" is a contradiction (rather: it's equivalent to just
terminating), hence why there are only three possibilities for the
states of the flags:

   .cont = continue, don't execute
   .last = don't continue, don't execute
   .cont.last = continue and execute

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
src/panfrost/midgard/midgard_emit.c