pan/bi: Support the case where TEXC needs 0 or 1 staging reg
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 17 Oct 2020 09:30:05 +0000 (11:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:22 +0000 (14:48 +0000)
commitd33c8afe9b5773419665a82a9780c3194177bf84
tree91c83990b1dfc0487b66236b04ed898d19e4715f
parent4aff27a68a174dc0b8b373dc7da096e295921b55
pan/bi: Support the case where TEXC needs 0 or 1 staging reg

No need to add a COMBINE instruction if TEXC only needs zero or one
staging reg.

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/bifrost_compile.c