pan/bi: Make sure we don't print special index as a register
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 17 Oct 2020 09:19:42 +0000 (11:19 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:22 +0000 (14:48 +0000)
commit74c158011d0cb8581bdaa337288a084859d89bc8
treef9395cf2a5add6ae4bdc00c185cc242c50a6771c
parenta194dcc827ec441eb5e94b0d5fceaeed349ffe34
pan/bi: Make sure we don't print special index as a register

index can have both a SPECIAL flag and PAN_IS_REG (bit 0) set, but we
shouln't treat the index as a register in that case. Let's bail out
early in bi_print_dest_index() when we're passed a special index
that's not a register.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
src/panfrost/bifrost/bi_print.c