[Mesa-dev] [PATCH] st/mesa: add ST_DEBUG=precompile support for tessellation shaders

Ilia Mirkin imirkin at alum.mit.edu
Mon Sep 28 16:52:36 PDT 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Mon, Sep 28, 2015 at 7:50 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>  src/mesa/state_tracker/st_program.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
> index e62dd7a..9c27147 100644
> --- a/src/mesa/state_tracker/st_program.c
> +++ b/src/mesa/state_tracker/st_program.c
> @@ -1681,6 +1681,26 @@ st_precompile_shader_variant(struct st_context *st,
>        break;
>     }
>
> +   case GL_TESS_CONTROL_PROGRAM_NV: {
> +      struct st_tessctrl_program *p = (struct st_tessctrl_program *)prog;
> +      struct st_tcp_variant_key key;
> +
> +      memset(&key, 0, sizeof(key));
> +      key.st = st;
> +      st_get_tcp_variant(st, p, &key);
> +      break;
> +   }
> +
> +   case GL_TESS_EVALUATION_PROGRAM_NV: {
> +      struct st_tesseval_program *p = (struct st_tesseval_program *)prog;
> +      struct st_tep_variant_key key;
> +
> +      memset(&key, 0, sizeof(key));
> +      key.st = st;
> +      st_get_tep_variant(st, p, &key);
> +      break;
> +   }
> +
>     case GL_GEOMETRY_PROGRAM_NV: {
>        struct st_geometry_program *p = (struct st_geometry_program *)prog;
>        struct st_gp_variant_key key;
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list