From eb33dd69540d9d14acc42102f14dcc7d0075943f Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Thu, 17 Jun 2010 10:54:44 -0400 Subject: draw: implement line strip adjacency --- src/gallium/auxiliary/draw/draw_gs_tmp.h | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3