projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f6341d
)
gallium/util: add extra primitives to the trimmer
author
Zack Rusin
<zackr@vmware.com>
Tue, 3 Aug 2010 19:56:17 +0000
(15:56 -0400)
committer
Zack Rusin
<zackr@vmware.com>
Tue, 3 Aug 2010 19:56:49 +0000
(15:56 -0400)
src/gallium/auxiliary/util/u_prim.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_prim.h
b/src/gallium/auxiliary/util/u_prim.h
index 606b9b5c6b9e91041d81400c8a7686703870a5ba..63ddc864756554a615721bc681915c365fff982a 100644
(file)
--- a/
src/gallium/auxiliary/util/u_prim.h
+++ b/
src/gallium/auxiliary/util/u_prim.h
@@
-108,6
+108,19
@@
static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr )
ok = (*nr >= 4);
*nr -= (*nr % 2);
break;
+ case PIPE_PRIM_LINES_ADJACENCY:
+ ok = (*nr >= 4);
+ *nr -= (*nr % 4);
+ break;
+ case PIPE_PRIM_LINE_STRIP_ADJACENCY:
+ break;
+ case PIPE_PRIM_TRIANGLES_ADJACENCY:
+ ok = (*nr >= 6);
+ *nr -= (*nr % 5);
+ break;
+ case PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY:
+ ok = (*nr >= 4);
+ break;
default:
ok = 0;
break;