nir: Move nir_lower_uniforms_to_ubo to compiler/nir.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 8 Feb 2019 21:36:37 +0000 (22:36 +0100)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commit909d1f50f3ffc62d5a23669ad0bc8eedb9416af0
treec027bc73c8997ba44e7c83817f7863a5838339d9
parent4dba72c4b35eeb312da232b2f30f067885bc9f07
nir: Move nir_lower_uniforms_to_ubo to compiler/nir.

The nir_lower_uniforms_to_ubo function is useful outside of
mesa/state_tracker, and in fact is needed to produce NIR for
drivers that have the PIPE_CAP_PACKED_UNIFORMS capability.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_uniforms_to_ubo.c [new file with mode: 0644]
src/mesa/Makefile.sources
src/mesa/meson.build
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_nir.h
src/mesa/state_tracker/st_nir_builtins.c
src/mesa/state_tracker/st_nir_lower_uniforms_to_ubo.c [deleted file]