nir: Carve out nir_lower_samplers from GLSL code.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 28 Aug 2019 20:34:14 +0000 (22:34 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 6 Sep 2019 09:20:20 +0000 (12:20 +0300)
commit610cc3089ccf1bce3ad025f308b6f408e8e90920
treeb87ac18076222fba3bf85f7e0eb575910d007f16
parent9b9e1de90e859be950ebf7e0ac5a414728f48aac
nir: Carve out nir_lower_samplers from GLSL code.

Lowering samplers is needed to produce NIR that can actually be
consumed by some gallium drivers, so it doesn't make sense to
to keep it only in the GLSL code.

This commit introduces nir_lower_samplers to compiler/nir,
while maintains the GL-specific function too.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/Makefile.sources
src/compiler/glsl/gl_nir_lower_samplers.c
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_samplers.c [new file with mode: 0644]