ir3: Insert output collects in the main shader
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 4 Mar 2021 11:21:50 +0000 (12:21 +0100)
committerEmma Anholt <emma@anholt.net>
Thu, 10 Jun 2021 19:24:06 +0000 (12:24 -0700)
commita61a9cd65dd52b4bccfb33c3fba7b28a84a1a4e1
tree122153338b84992c1e1d60ffabdcb6b68bcf7a6a
parentfa17295ebdd42ab9f6a76ce44f303a99efcf3707
ir3: Insert output collects in the main shader

We were inserting them in what was NIR's end block with the "end"
instruction, which meant that the moves they generated couldn't be
scheduled with the rest of the last block as part of post-RA scheduling.

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