pan/bi: Fix more jumps to terminal blocks
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 18 Feb 2021 18:46:41 +0000 (13:46 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 17:12:55 +0000 (17:12 +0000)
commit46384d0dcceeae285dea5566e4c026c971dd8d01
tree1018fdaaacf2eb2074d78da8c807a9e9229d01dc
parent0d5a88c6cb48efa277fb23b2f3b4239a415396fd
pan/bi: Fix more jumps to terminal blocks

Here's another edge case: there could be instructions in the last block
after NIR->BIR but they could be optimized out by backend DCE, causing
the block to become a terminal block.

Noticed while toying with geometry shaders.

Fixes: a805d999c0e ("pan/bi: Fix jumps to terminal block again")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9137>
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h