From dde73e646fe22e50878783580d1707a2acceb054 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 6 Sep 2018 11:12:24 -0700 Subject: nir: Tag entrypoint for easy recognition by nir_shader_get_entrypoint() We're going to have multiple functions, so nir_shader_get_entrypoint() needs to do something a little smarter. Reviewed-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- src/compiler/spirv/spirv_to_nir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/spirv/spirv_to_nir.c') diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index eaad406ecd4..e3dc619c6f7 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -4420,5 +4420,6 @@ spirv_to_nir(const uint32_t *words, size_t word_count, ralloc_free(b); + entry_point->is_entrypoint = true; return entry_point; } -- cgit v1.2.3