[Mesa-dev] [PATCH] st/mesa: fix tessellation shaders with no support for shareable shaders
Marek Olšák
maraeo at gmail.com
Sat Jul 1 15:41:10 UTC 2017
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) {
--
2.7.4
More information about the mesa-dev
mailing list