info->uses_texture_gather = sh->Program->UsesGather;
switch (sh->Stage) {
- case MESA_SHADER_TESS_EVAL: {
- struct gl_tess_eval_program *tep =
- (struct gl_tess_eval_program *)sh->Program;
-
- info->tes.primitive_mode = tep->PrimitiveMode;
- info->tes.spacing = tep->Spacing;
- info->tes.vertex_order = tep->VertexOrder;
- info->tes.point_mode = tep->PointMode;
- break;
- }
-
case MESA_SHADER_GEOMETRY:
info->gs.vertices_in = shader_prog->Geom.VerticesIn;
info->gs.output_primitive = sh->info.Geom.OutputType;
break;
}
case MESA_SHADER_TESS_EVAL: {
- struct gl_tess_eval_program *dst_tep =
- (struct gl_tess_eval_program *) dst;
-
- dst_tep->PrimitiveMode = dst_sh->info.TessEval.PrimitiveMode;
- dst_tep->Spacing = dst_sh->info.TessEval.Spacing;
- dst_tep->VertexOrder = dst_sh->info.TessEval.VertexOrder;
- dst_tep->PointMode = dst_sh->info.TessEval.PointMode;
+ dst->info.tes.primitive_mode = dst_sh->info.TessEval.PrimitiveMode;
+ dst->info.tes.spacing = dst_sh->info.TessEval.Spacing;
+ dst->info.tes.vertex_order = dst_sh->info.TessEval.VertexOrder;
+ dst->info.tes.point_mode = dst_sh->info.TessEval.PointMode;
dst->ClipDistanceArraySize = src->TessEval.ClipDistanceArraySize;
dst->CullDistanceArraySize = src->TessEval.CullDistanceArraySize;
break;