summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_gs_tmp.h5
1 files changed, 5 insertions, 0 deletions
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");