panfrost: Verify and print brx condition in disasm
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 18 Feb 2019 04:29:20 +0000 (04:29 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 21 Feb 2019 07:09:06 +0000 (07:09 +0000)
commit705723e6bef61b3937d5a4928e58b63d4c70f18c
tree891fd9b480277ddcf90c97c43a24af675dda5786
parent779e140b1aeeb4592c6e8c573d344ba3dcbd6872
panfrost: Verify and print brx condition in disasm

The condition code in extended branches is repeated 8 times for unclear
reasons; accordingly, the code would be disassembled as "unknown5555",
"unknownAAAA", etc. This patch correctly masks off the lower two bits to
find the true code to print, verifying that the code is repeated as
believed to be necessary (providing some assurance for compiler quality
and an assert trip in case we encounter a shader in the wild that breaks
the convention).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/disassemble.c