diff options
author | Zack Rusin <[email protected]> | 2010-08-03 15:56:17 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-08-03 15:56:49 -0400 |
commit | 1fd84b10f269a32db66254aa567b1aad8b152fe8 (patch) | |
tree | 7be366b71b2776f83075a2a1c1ab7a14fc1a4649 /src/gallium/auxiliary | |
parent | 8f6341d42131e6f60f269610d62b7f5b7b683052 (diff) |
gallium/util: add extra primitives to the trimmer
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_prim.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_prim.h b/src/gallium/auxiliary/util/u_prim.h index 606b9b5c6b9..63ddc864756 100644 --- 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; |