diff options
author | Jason Ekstrand <[email protected]> | 2018-10-29 12:08:29 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-30 20:14:52 -0500 |
commit | d3a0d8b750a6db5bc535f5f0b9c2c83849fee5bb (patch) | |
tree | 9be0fe6c1a96a85b53e3b69782fd7c0dc07f8d3f /src/intel/vulkan | |
parent | 31596836fc22e1f5b4cf85abc012acd27366db87 (diff) |
intel/compiler: Stop assuming the entrypoint is called "main"
This isn't true for Vulkan so we have to whack it to "main" in anv which
is silly. Instead of walking the list of functions and asserting that
everything is named "main" and hoping there's only one function named
"main", just use the nir_shader_get_entrypoint() helper which has better
assertions anyway.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 7c9b1230115..ad0f08253e7 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -191,7 +191,6 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline, exec_node_remove(&func->node); } assert(exec_list_length(&nir->functions) == 1); - entry_point->name = ralloc_strdup(entry_point, "main"); /* Now that we've deleted all but the main function, we can go ahead and * lower the rest of the constant initializers. We do this here so that |