etnaviv: nir: add ubo lowering pass

Graphics / Mesa 3D Graphics Library / Mesa - Christian Gmeiner [gmail.com] - 23 February 2021 14:55 UTC

Adds a pass to lower the load_ubo intrinsics for block 0 back to load_uniform intrinsic.

1837135f7ca etnaviv: nir: add ubo lowering pass
src/gallium/drivers/etnaviv/Makefile.sources | 1 +
src/gallium/drivers/etnaviv/etnaviv_nir.h | 3 +
.../etnaviv/etnaviv_nir_lower_ubo_to_uniform.c | 79 ++++++++++
src/gallium/drivers/etnaviv/meson.build | 17 +++
.../drivers/etnaviv/tests/lower_ubo_tests.cpp | 166 +++++++++++++++++++++
5 files changed, 266 insertions(+)

Upstream: cgit.freedesktop.org


  • Share