From: Zack Rusin Date: Thu, 17 Jun 2010 14:54:44 +0000 (-0400) Subject: draw: implement line strip adjacency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb33dd69540d9d14acc42102f14dcc7d0075943f;p=mesa.git draw: implement line strip adjacency --- diff --git a/src/gallium/auxiliary/draw/draw_gs_tmp.h b/src/gallium/auxiliary/draw/draw_gs_tmp.h index 04f51a6b449..4687e8823c7 100644 --- a/src/gallium/auxiliary/draw/draw_gs_tmp.h +++ b/src/gallium/auxiliary/draw/draw_gs_tmp.h @@ -112,6 +112,11 @@ static void FUNC( struct draw_geometry_shader *shader, LINE_ADJ( shader , i + 0 , i + 1, i + 2, i + 3 ); } break; + case PIPE_PRIM_LINE_STRIP_ADJACENCY: + for (i = 1; i + 2 < count; i++) { + LINE( shader, i - 1, i, i + 1, i + 2 ); + } + break; default: debug_assert(!"Unsupported primitive in geometry shader");