[Mesa-dev] [PATCH] intel/compiler: Stop assuming the entrypoint is called "main"

Kenneth Graunke kenneth at whitecape.org
Tue Oct 30 23:36:06 UTC 2018


On Tuesday, October 30, 2018 9:26:29 AM PDT Jason Ekstrand wrote:
> 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.
> ---
>  src/intel/compiler/brw_fs_nir.cpp   | 17 ++++-------------
>  src/intel/compiler/brw_vec4_nir.cpp |  7 +------
>  src/intel/vulkan/anv_pipeline.c     |  1 -
>  3 files changed, 5 insertions(+), 20 deletions(-)

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181030/25838cd8/attachment.sig>


More information about the mesa-dev mailing list