freedreno/ir3: Include at least 4 NOPs so that cffdump doesn't disasm junk.
authorEric Anholt <eric@anholt.net>
Tue, 4 Aug 2020 23:43:51 +0000 (16:43 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 16 Nov 2020 21:54:22 +0000 (13:54 -0800)
commita9b37e5dad6652e7cb404da6a0452dfd46533d04
tree1fb258d34f2b332cf4cc14c492d20427ed45518c
parent51f2b11b043da05e12f26d8466e68e55f0d17c3b
freedreno/ir3: Include at least 4 NOPs so that cffdump doesn't disasm junk.

cffdump looks at the following 4 instructions to decide if the shader has
*really* ended, so if we pack data after that (such as turnip's next
stage's shader), it might decode instructions that aren't really part of
the shader.

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