[Mesa-dev] [PATCH] st/mesa: fix tessellation shaders with no support for shareable shaders

Nicolai Hähnle nhaehnle at gmail.com
Mon Jul 3 19:28:48 UTC 2017


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 01.07.2017 17:41, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> Broken by: b43c887a9bf1e3fb99b0dc22bfea5db81375a06e
> 
> Reported by Gert Wollny.
> ---
>   src/mesa/state_tracker/st_atom_shader.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
> index c1869d3..46f2bd7 100644
> --- a/src/mesa/state_tracker/st_atom_shader.c
> +++ b/src/mesa/state_tracker/st_atom_shader.c
> @@ -226,31 +226,31 @@ st_update_gp(struct st_context *st)
>                                              PIPE_SHADER_GEOMETRY, &st->gp);
>      cso_set_geometry_shader_handle(st->cso_context, shader);
>   }
>   
>   
>   void
>   st_update_tcp(struct st_context *st)
>   {
>      void *shader = st_update_common_program(st,
>                                              st->ctx->TessCtrlProgram._Current,
> -                                           MESA_SHADER_TESS_CTRL, &st->tcp);
> +                                           PIPE_SHADER_TESS_CTRL, &st->tcp);
>      cso_set_tessctrl_shader_handle(st->cso_context, shader);
>   }
>   
>   
>   void
>   st_update_tep(struct st_context *st)
>   {
>      void *shader = st_update_common_program(st,
>                                              st->ctx->TessEvalProgram._Current,
> -                                           MESA_SHADER_TESS_EVAL, &st->tep);
> +                                           PIPE_SHADER_TESS_EVAL, &st->tep);
>      cso_set_tesseval_shader_handle(st->cso_context, shader);
>   }
>   
>   
>   void
>   st_update_cp( struct st_context *st )
>   {
>      struct st_compute_program *stcp;
>   
>      if (!st->ctx->ComputeProgram._Current) {
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list