Lines Matching refs:clipper

102    const struct clip_stage *clipper = clip_stage(stage);
104 for (i = 0; i < clipper->num_flat_attribs; i++) {
105 const uint attr = clipper->flat_attribs[i];
275 static INLINE float getclipdist(const struct clip_stage *clipper,
286 dp = vert->data[draw_current_shader_clipdistance_output(clipper->stage.draw, cdi)][vidx];
288 plane = clipper->plane[plane_idx];
301 struct clip_stage *clipper = clip_stage( stage );
338 dp_prev = getclipdist(clipper, vert_prev, plane_idx);
351 float dp = getclipdist(clipper, vert, plane_idx);
368 new_vert = clipper->stage.tmp[tmpnr++];
382 interp( clipper, new_vert, t, vert, vert_prev );
403 interp( clipper, new_vert, t, vert_prev, vert );
435 if (clipper->num_flat_attribs) {
470 const struct clip_stage *clipper = clip_stage( stage );
479 const float dp0 = getclipdist(clipper, v0, plane_idx);
480 const float dp1 = getclipdist(clipper, v1, plane_idx);
499 interp( clipper, stage->tmp[0], t0, v0, v1 );
508 interp( clipper, stage->tmp[1], t1, v1, v0 );
573 struct clip_stage *clipper = clip_stage( stage );
617 clipper->num_flat_attribs = 0;
618 memset(clipper->noperspective_attribs, 0, sizeof(clipper->noperspective_attribs));
650 clipper->flat_attribs[clipper->num_flat_attribs] = i;
651 clipper->num_flat_attribs++;
653 clipper->noperspective_attribs[i] = interp == TGSI_INTERPOLATE_LINEAR;
700 * Allocate a new clipper stage.
705 struct clip_stage *clipper = CALLOC_STRUCT(clip_stage);
706 if (clipper == NULL)
709 clipper->stage.draw = draw;
710 clipper->stage.name = "clipper";
711 clipper->stage.point = clip_point;
712 clipper->stage.line = clip_first_line;
713 clipper->stage.tri = clip_first_tri;
714 clipper->stage.flush = clip_flush;
715 clipper->stage.reset_stipple_counter = clip_reset_stipple_counter;
716 clipper->stage.destroy = clip_destroy;
718 clipper->plane = draw->plane;
720 if (!draw_alloc_temp_verts( &clipper->stage, MAX_CLIPPED_VERTICES+1 ))
723 return &clipper->stage;
726 if (clipper)
727 clipper->stage.destroy( &clipper->stage );