diff options
author | Matt Turner <[email protected]> | 2018-09-06 11:12:24 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-01-09 16:42:40 -0800 |
commit | dde73e646fe22e50878783580d1707a2acceb054 (patch) | |
tree | 9ce2f4b77b3bc847f98c3eda585020dda212c1be /src/compiler/spirv/spirv_to_nir.c | |
parent | 393b59e0772e7bf0426bdf61c740752c4e09dde1 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_to_nir.c')
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |