freedreno/a6xx: Simplify fd6_build_user_consts()
authorRob Clark <robdclark@chromium.org>
Sun, 18 Sep 2022 18:42:11 +0000 (11:42 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 20 Sep 2022 02:22:19 +0000 (02:22 +0000)
commit0bf25a5313c7c006eea2d39eaeae39b696620175
tree6ab60edced93105be1a1c2650524cf1e4c6f9df6
parent2f3b980caace799e920513a54f81f2cca7b10406
freedreno/a6xx: Simplify fd6_build_user_consts()

Get rid of the table indirects.  Cuts in half the time spent in this fxn
in drawoverhead test 31 ("many uniforms / 1 changemany uniforms / 1
change")

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18646>
src/gallium/drivers/freedreno/a6xx/fd6_const.c