[Mesa-dev] [PATCH 1/5] nir: Use nir_shader_get_entrypoint in nir_lower_clip_vs().
Jason Ekstrand
jason at jlekstrand.net
Sun Nov 11 04:01:53 UTC 2018
Rb
On November 9, 2018 20:13:44 Kenneth Graunke <kenneth at whitecape.org> wrote:
> ---
> src/compiler/nir/nir_lower_clip.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/src/compiler/nir/nir_lower_clip.c
> b/src/compiler/nir/nir_lower_clip.c
> index 7081295a500..013645101f2 100644
> --- a/src/compiler/nir/nir_lower_clip.c
> +++ b/src/compiler/nir/nir_lower_clip.c
> @@ -199,6 +199,7 @@ lower_clip_vs(nir_function_impl *impl, unsigned
> ucp_enables,
> bool
> nir_lower_clip_vs(nir_shader *shader, unsigned ucp_enables)
> {
> + nir_function_impl *impl = nir_shader_get_entrypoint(shader);
> int clipvertex = -1;
> int position = -1;
> int maxloc = -1;
> @@ -250,10 +251,7 @@ nir_lower_clip_vs(nir_shader *shader, unsigned
> ucp_enables)
> out[1] =
> create_clipdist_var(shader, ++maxloc, true, VARYING_SLOT_CLIP_DIST1);
>
> - nir_foreach_function(function, shader) {
> - if (!strcmp(function->name, "main"))
> - lower_clip_vs(function->impl, ucp_enables, cv, out);
> - }
> + lower_clip_vs(impl, ucp_enables, cv, out);
>
> return true;
> }
> --
> 2.19.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list