pan/bi: Use padding bytes for checking whether to stop disassembly
authorIcecream95 <ixn@disroot.org>
Sat, 31 Jul 2021 00:27:43 +0000 (12:27 +1200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 1 Aug 2021 13:04:20 +0000 (13:04 +0000)
commit1acc3394c434891233cb67fd587f6cbbf2677514
treeb584d54bc99288b42921453bc4f2ded42d55107e
parent8574ca4491815647e69ff529d8c81391080de4c1
pan/bi: Use padding bytes for checking whether to stop disassembly

Both Panfrost and the DDK add padding zero bytes to the end of
shaders, so we can use this instead of the end-of-shader clause for
checking whether to stop disassembling.

Shaders can have end-of-shader clauses partway through; these shaders
will now be completely disassembled instead of cut off at the first
end-of-shader clause.

A tag byte of zero is an invalid encoding, so unlike the previous
version of this test only check the first word.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12153>
src/panfrost/bifrost/disassemble.c