diff options
author | Chia-I Wu <[email protected]> | 2013-05-02 11:25:39 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-03 11:39:12 +0800 |
commit | 64913002e4e57afc97771ffdb8de1f008534d859 (patch) | |
tree | de7e9a10b78179b646c8b203d228bff42ed21180 /src/gallium/auxiliary/util/u_prim.h | |
parent | 573d8813fdbb116f4500d2044c56d80aab73ab7f (diff) |
util/prim: fix primitive trimming for triangles with adjacency
Fix for PIPE_PRIM_TRIANGLES_ADJACENCY and PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY.
Signed-off-by: Chia-I Wu <[email protected]>
Acked-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_prim.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_prim.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_prim.h b/src/gallium/auxiliary/util/u_prim.h index e4774442c81..31f92352ee3 100644 --- a/src/gallium/auxiliary/util/u_prim.h +++ b/src/gallium/auxiliary/util/u_prim.h @@ -91,8 +91,8 @@ static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr ) { 3, 0 }, /* PIPE_PRIM_TRIANGLE_POLYGON */ { 4, 4 }, /* PIPE_PRIM_LINES_ADJACENCY */ { 4, 0 }, /* PIPE_PRIM_LINE_STRIP_ADJACENCY */ - { 6, 5 }, /* PIPE_PRIM_TRIANGLES_ADJACENCY */ - { 4, 0 }, /* PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY */ + { 6, 6 }, /* PIPE_PRIM_TRIANGLES_ADJACENCY */ + { 6, 2 }, /* PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY */ }; if (unlikely(pipe_prim >= PIPE_PRIM_MAX)) { |