nir/spirv: Add support for multiple entrypoints per shader
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 01:17:12 +0000 (17:17 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 01:45:43 +0000 (17:45 -0800)
commit0fe4580e64f01d86fb48cdba665ede4e54200658
tree1c44024910d8c44dd269f5fd4b6bf113c5b02a03
parente993e45eb157014fe6a7f65be8edda9fd716dc52
nir/spirv: Add support for multiple entrypoints per shader

This is done by passing the entrypoint name into spirv_to_nir.  It will
then process the shader as if that were the only entrypoint we care about.
Instead of returning a nir_shader, it now returns a nir_function.
src/glsl/nir/spirv/nir_spirv.h
src/glsl/nir/spirv/spirv_to_nir.c
src/glsl/nir/spirv/vtn_private.h
src/glsl/nir/spirv2nir.c
src/vulkan/anv_pipeline.c