diff options
author | Zack Rusin <[email protected]> | 2010-06-17 10:54:44 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-06-17 10:54:44 -0400 |
commit | eb33dd69540d9d14acc42102f14dcc7d0075943f (patch) | |
tree | 658293f1de069e2a790d15276899e5b25c0c4025 /src/gallium/auxiliary/draw | |
parent | dc8f64c537a72d82c4c3d9e3bf6bf1e4a07c3b53 (diff) |
draw: implement line strip adjacency
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs_tmp.h | 5 |
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"); |