ir3: Don't double-insert the first block
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 21 Apr 2020 09:27:46 +0000 (11:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 09:49:40 +0000 (09:49 +0000)
commit8cfa60eab85bfe08098ddd014da861b9e3f6aca3
treeac9f8122bfd4aa11b8298eb1ea3481e21c6beaf5
parent66229aa16968eb60dd631a8f48f593a4fa8478d5
ir3: Don't double-insert the first block

The first block was being added to the list twice, once here and once in
emit_block(), leading to list corruption and infinite loops when trying
to traverse the list of blocks backwards.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4658>
src/freedreno/ir3/ir3_compiler_nir.c