broadcom/compiler: fix end of TMU sequence check
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 14 Feb 2022 10:42:16 +0000 (11:42 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Feb 2022 08:38:19 +0000 (08:38 +0000)
commit92d819aaa00aaa185b78793ccfc2151d92538a75
tree5d83ea221e8f9cbdd3ce5a12721acf3eb842daaa
parent40e091267dd02d729cc6d12d190309f103217111
broadcom/compiler: fix end of TMU sequence check

We may be pipelining TMU writes and reads, in which case we can
see both TMUWT and LDTMU at the end of a TMU sequence, so we should
not assume that a TMUWT always terminates a sequence.

Also, we had a bug where we were using inst instead of scan_inst
to check if we find another TMUWT after the curent instruction.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15041>
src/broadcom/compiler/vir_register_allocate.c