turnip: Don't re-use entry_point pointer from spirv_to_nir
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sun, 19 May 2019 06:55:01 +0000 (23:55 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 29 May 2019 17:26:22 +0000 (10:26 -0700)
commitc92d0029822f55aeb8e015d865dd4076f0e70062
treed6e619c14377e5fd90bb28079918b9a4696dcb7e
parent0a0be7aee0dcfa660b62073e39b1e86de67e48fd
turnip: Don't re-use entry_point pointer from spirv_to_nir

Replace its uses with nir_shader_get_entrypoint(), and change the
helper function to return nir_shader *.

This is a preparation to change spirv_to_nir() return type.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/freedreno/vulkan/tu_shader.c