v3d/tex: use TMUSLOD register if possible
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 7 May 2020 09:46:25 +0000 (11:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 May 2020 23:52:46 +0000 (23:52 +0000)
commitf7fcbe9830d160c9610fe641ed0202397ed9c31e
tree0084c7a07141b33d623ddbd3b1dcd396797cf066
parentc3af695bb0bae8aea119a2d05983acd57366b0fb
v3d/tex: use TMUSLOD register if possible

TMUSLOD register is the same that TMUS but having the same effect that
setting disable_autolod on the TMU configuration parameter 2.

So using that register is potentially more efficient, as in several
cases we would be able to skip writing P2.

One case where we can't use it is for texture cube maps, as we need to
use TMUSCM.

v2: don't put a comment in the middle of the conditions (Iago)

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4962>
src/broadcom/compiler/v3d40_tex.c