[Mesa-dev] [PATCH v2 01/31] st/nir: treat tess shader input/outputs the same as geom shaders

Marek Olšák maraeo at gmail.com
Thu Jan 4 17:30:12 UTC 2018


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Jan 4, 2018 at 4:01 PM, Karol Herbst <kherbst at redhat.com> wrote:
> this is enough to get tessellation working in Unigine heaven
>
> Signed-off-by: Karol Herbst <kherbst at redhat.com>
> ---
>  src/mesa/state_tracker/st_glsl_to_nir.cpp | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> index 276450a64a..5683dfcccc 100644
> --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> @@ -675,7 +675,9 @@ st_finalize_nir(struct st_context *st, struct gl_program *prog,
>                                    &nir->num_outputs,
>                                    nir->info.stage);
>        st_nir_fixup_varying_slots(st, &nir->outputs);
> -   } else if (nir->info.stage == MESA_SHADER_GEOMETRY) {
> +   } else if (nir->info.stage == MESA_SHADER_GEOMETRY ||
> +              nir->info.stage == MESA_SHADER_TESS_CTRL ||
> +              nir->info.stage == MESA_SHADER_TESS_EVAL) {
>        sort_varyings(&nir->inputs);
>        st_nir_assign_var_locations(&nir->inputs,
>                                    &nir->num_inputs,
> --
> 2.14.3
>
> _______________________________________________
> 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