Nothing in the clipper uses gl_ClipVertex any more, so we don't care where it is.
Signed-off-by: Chris Forbes <[email protected]> --- src/mesa/drivers/dri/i965/brw_clip_tri.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_clip_tri.c b/src/mesa/drivers/dri/i965/brw_clip_tri.c index 4d2eb0a..21a5694 100644 --- a/src/mesa/drivers/dri/i965/brw_clip_tri.c +++ b/src/mesa/drivers/dri/i965/brw_clip_tri.c @@ -225,8 +225,7 @@ void brw_clip_tri_flat_shade( struct brw_clip_compile *c ) static inline void load_clip_distance(struct brw_clip_compile *c, struct brw_indirect vtx, - struct brw_reg dst, GLuint hpos_offset, GLuint clip_offset, - int cond) + struct brw_reg dst, GLuint hpos_offset, int cond) { struct brw_compile *p = &c->func; @@ -321,13 +320,11 @@ void brw_clip_tri( struct brw_clip_compile *c ) */ brw_MOV(p, get_addr_reg(vtx), deref_1uw(inlist_ptr, 0)); - load_clip_distance(c, vtxPrev, c->reg.dpPrev, hpos_offset, clipvert_offset, - BRW_CONDITIONAL_L); + load_clip_distance(c, vtxPrev, c->reg.dpPrev, hpos_offset, BRW_CONDITIONAL_L); /* IS_NEGATIVE(prev) */ brw_IF(p, BRW_EXECUTE_1); { - load_clip_distance(c, vtx, c->reg.dp, hpos_offset, clipvert_offset, - BRW_CONDITIONAL_GE); + load_clip_distance(c, vtx, c->reg.dp, hpos_offset, BRW_CONDITIONAL_GE); /* IS_POSITIVE(next) */ brw_IF(p, BRW_EXECUTE_1); @@ -368,8 +365,7 @@ void brw_clip_tri( struct brw_clip_compile *c ) brw_ADD(p, get_addr_reg(outlist_ptr), get_addr_reg(outlist_ptr), brw_imm_uw(sizeof(short))); brw_ADD(p, c->reg.nr_verts, c->reg.nr_verts, brw_imm_ud(1)); - load_clip_distance(c, vtx, c->reg.dp, hpos_offset, clipvert_offset, - BRW_CONDITIONAL_L); + load_clip_distance(c, vtx, c->reg.dp, hpos_offset, BRW_CONDITIONAL_L); /* IS_NEGATIVE(next) */ brw_IF(p, BRW_EXECUTE_1); -- 1.8.3.4 _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
