diff options
author | Timothy Arceri <[email protected]> | 2016-10-19 10:30:52 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-26 14:29:36 +1100 |
commit | 67c2d80a839614e4638d6cff390627122f8148ca (patch) | |
tree | fc6e4bd791478b11338cee1028bd77f0196c970c /src/mesa/state_tracker/st_program.c | |
parent | 65225c20c64dd5980f4e3a4eaecb9088aabea2fb (diff) |
i965/mesa/st: eliminate gl_tess_eval_program
We now get all the tes metadata from shader_info.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 210aa33daf5..78044526d56 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1629,13 +1629,13 @@ st_translate_tesseval_program(struct st_context *st, if (ureg == NULL) return false; - if (sttep->Base.Base.info.tes.primitive_mode == GL_ISOLINES) + if (sttep->Base.info.tes.primitive_mode == GL_ISOLINES) ureg_property(ureg, TGSI_PROPERTY_TES_PRIM_MODE, GL_LINES); else ureg_property(ureg, TGSI_PROPERTY_TES_PRIM_MODE, - sttep->Base.Base.info.tes.primitive_mode); + sttep->Base.info.tes.primitive_mode); - switch (sttep->Base.Base.info.tes.spacing) { + switch (sttep->Base.info.tes.spacing) { case GL_EQUAL: ureg_property(ureg, TGSI_PROPERTY_TES_SPACING, PIPE_TESS_SPACING_EQUAL); break; @@ -1652,11 +1652,11 @@ st_translate_tesseval_program(struct st_context *st, } ureg_property(ureg, TGSI_PROPERTY_TES_VERTEX_ORDER_CW, - sttep->Base.Base.info.tes.vertex_order == GL_CW); + sttep->Base.info.tes.vertex_order == GL_CW); ureg_property(ureg, TGSI_PROPERTY_TES_POINT_MODE, - sttep->Base.Base.info.tes.point_mode); + sttep->Base.info.tes.point_mode); - st_translate_program_common(st, &sttep->Base.Base, sttep->glsl_to_tgsi, + st_translate_program_common(st, &sttep->Base, sttep->glsl_to_tgsi, ureg, PIPE_SHADER_TESS_EVAL, &sttep->tgsi); free_glsl_to_tgsi_visitor(sttep->glsl_to_tgsi); |