etnaviv: do register setup only once
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 3 Jul 2020 10:42:56 +0000 (12:42 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jul 2020 20:01:04 +0000 (20:01 +0000)
commit60915f87c73cd8f0361b2f465670313a1e121b41
tree1e81b55d4b878aa6f2017f43191f5625f4e13fad
parent7ee146aad49bc9e724cc93033298195ad1d9e162
etnaviv: do register setup only once

Register set setup should be done once at backend
initializaion, as ra_set_finalize is O(r^2*c^2).

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5996>
src/gallium/drivers/etnaviv/etnaviv_compiler.c
src/gallium/drivers/etnaviv/etnaviv_compiler.h
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h
src/gallium/drivers/etnaviv/etnaviv_compiler_nir_ra.c
src/gallium/drivers/etnaviv/etnaviv_shader.c
src/gallium/drivers/etnaviv/etnaviv_shader.h