st/nir/radeonsi: move nir_lower_uniforms_to_ubo() to the state tracker
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Mar 2018 00:57:52 +0000 (11:57 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 20 Mar 2018 03:17:34 +0000 (14:17 +1100)
commitffa4bbe4665f95bab7779ded57d6a4de13cb8ffc
treed00e587b2baccb7cf4da3423baa43835b177a872
parenta80cf442d939212da40951a0a57a0978de6f39a6
st/nir/radeonsi: move nir_lower_uniforms_to_ubo() to the state tracker

This will only ever be used by gallium drivers so it probably doesn't
belong in the nir toolkit. Also we want to pass it some non NIR
things in the following patch.

To avoid regressions we wrap the lowering calls that have been moved
to st_glsl_to_nir with a quick hack so that they are only called for
radeonsi, we will replace the hack with a check for uniform packing
in a following patch.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_uniforms_to_ubo.c [deleted file]
src/gallium/drivers/radeonsi/si_shader_nir.c
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_lower_uniforms_to_ubo.c [new file with mode: 0644]