st/mesa: fix tessellation shaders with no support for shareable shaders
authorMarek Olšák <marek.olsak@amd.com>
Sat, 1 Jul 2017 14:05:48 +0000 (16:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 3 Jul 2017 21:08:28 +0000 (23:08 +0200)
Broken by: b43c887a9bf1e3fb99b0dc22bfea5db81375a06e

Reported by Gert Wollny.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_shader.c

index c1869d323beb43da99afcc51820fe423c252651d..46f2bd7e3bf98474607196171427e1fbed905c1a 100644 (file)
@@ -233,7 +233,7 @@ 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);
 }
 
@@ -243,7 +243,7 @@ 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);
 }