projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8f64c
)
draw: implement line strip adjacency
author
Zack Rusin
<zackr@vmware.com>
Thu, 17 Jun 2010 14:54:44 +0000
(10:54 -0400)
committer
Zack Rusin
<zackr@vmware.com>
Thu, 17 Jun 2010 14:54:44 +0000
(10:54 -0400)
src/gallium/auxiliary/draw/draw_gs_tmp.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_gs_tmp.h
b/src/gallium/auxiliary/draw/draw_gs_tmp.h
index 04f51a6b44958003f1c582ae222c91a2b2064ae8..4687e8823c70a08f7d172f699024c1041c63984c 100644
(file)
--- 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");