Mesa (master): draw: implement line strip adjacency
Zack Rusin
zack at kemper.freedesktop.org
Thu Jun 17 14:55:12 UTC 2010
Module: Mesa
Branch: master
Commit: eb33dd69540d9d14acc42102f14dcc7d0075943f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb33dd69540d9d14acc42102f14dcc7d0075943f
Author: Zack Rusin <zackr at vmware.com>
Date: Thu Jun 17 10:54:44 2010 -0400
draw: implement line strip adjacency
---
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 04f51a6..4687e88 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");
More information about the mesa-commit
mailing list