From: Xiang, Haihao Date: Fri, 28 Mar 2008 09:32:45 +0000 (+0800) Subject: i965: depth offset on glPolygonMode(GL_LINE/GL_POINT) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=184cf464f4183a664fa0358fe118735e6fd98afe;p=mesa.git i965: depth offset on glPolygonMode(GL_LINE/GL_POINT) --- diff --git a/src/mesa/drivers/dri/i965/brw_clip_unfilled.c b/src/mesa/drivers/dri/i965/brw_clip_unfilled.c index 918e0001870..57ebf388f58 100644 --- a/src/mesa/drivers/dri/i965/brw_clip_unfilled.c +++ b/src/mesa/drivers/dri/i965/brw_clip_unfilled.c @@ -220,8 +220,8 @@ static void apply_one_offset( struct brw_clip_compile *c, struct brw_indirect vert ) { struct brw_compile *p = &c->func; - struct brw_reg pos = deref_4f(vert, c->offset[VERT_RESULT_HPOS]); - struct brw_reg z = get_element(pos, 2); + struct brw_reg z = deref_1f(vert, c->header_position_offset + + 2 * type_sz(BRW_REGISTER_TYPE_F)); brw_ADD(p, z, z, vec1(c->reg.offset)); }