[i965] make stipple pattern continue across GL_LINE_LOOP and GL_LINE_STRIP
authorZou Nan hai <nanhai.zou@intel.com>
Tue, 18 Mar 2008 02:27:20 +0000 (10:27 +0800)
committerZou Nan hai <nanhai.zou@intel.com>
Tue, 18 Mar 2008 02:27:20 +0000 (10:27 +0800)
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_gs_emit.c

index 0990dcfac423a2df1f958b324717c6a780828164..c323fbe792ac3ed3eaab20a0b6830f9cd88ce2ff 100644 (file)
@@ -54,7 +54,7 @@ static GLuint hw_prim[GL_POLYGON+1] = {
    _3DPRIM_POINTLIST,
    _3DPRIM_LINELIST,
    _3DPRIM_LINELOOP,
-   _3DPRIM_LINESTRIP,
+   _3DPRIM_LINESTRIP_CONT,
    _3DPRIM_TRILIST,
    _3DPRIM_TRISTRIP,
    _3DPRIM_TRIFAN,
index 9abb94d82ed5d3bbb0be1e90cc00a59066067504..0c589c3c52d7d019f4de2ca3ccb88f567f6f7698 100644 (file)
@@ -137,8 +137,8 @@ void brw_gs_tris( struct brw_gs_compile *c )
 void brw_gs_lines( struct brw_gs_compile *c )
 {
    brw_gs_alloc_regs(c, 2);
-   brw_gs_emit_vue(c, c->reg.vertex[0], 0, ((_3DPRIM_LINESTRIP << 2) | R02_PRIM_START));
-   brw_gs_emit_vue(c, c->reg.vertex[1], 1, ((_3DPRIM_LINESTRIP << 2) | R02_PRIM_END));
+   brw_gs_emit_vue(c, c->reg.vertex[0], 0, ((_3DPRIM_LINESTRIP_CONT << 2) | R02_PRIM_START));
+   brw_gs_emit_vue(c, c->reg.vertex[1], 1, ((_3DPRIM_LINESTRIP_CONT << 2) | R02_PRIM_END));
 }
 
 void brw_gs_points( struct brw_gs_compile *c )