pan/bi: Handle loops when ingesting CFG
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 5 Mar 2020 22:03:53 +0000 (17:03 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 7 Mar 2020 00:37:39 +0000 (00:37 +0000)
commit987aea14000ce6524b12d72488dc1275d5e8a991
treec0aff417f955ad8d88ccc36b221448ac56a184e4
parent9a00cf3d1efe336e09906d87a8f5a50cbbe10fd6
pan/bi: Handle loops when ingesting CFG

Not very useful without also handling breaks and continues, of course.
We use the strategy from v3d (vir_to_nir) instead of Midgard's, since
the latter is mildly insane. I mean, it passes deqp but...

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h