r300/vs: Fix flow control processing just after an endloop.
authorEmma Anholt <emma@anholt.net>
Mon, 20 Dec 2021 20:48:15 +0000 (12:48 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Dec 2021 01:05:07 +0000 (01:05 +0000)
commit658b2ca4677fb8326781ea519df3a7dcdcd3b7d6
treea01c26bf67177ac1b3e723b4ffe5d147d513031d
parentb48852436e3005728e7f2cb1a77eea68e7c21a50
r300/vs: Fix flow control processing just after an endloop.

We tried to step over the instruction we just generated, except we didn't
always just generate one.  In the sequence_vertex tests, that meant we
skipped processing the next BGNLOOP and then underflowed our stack.

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14271>
src/gallium/drivers/r300/ci/r300-rv515-fails.txt
src/gallium/drivers/r300/compiler/radeon_vert_fc.c