From 58b104d7f0890434aadbdebcd6002ba0a0e132ec Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Wed, 11 Aug 2010 10:54:31 +0200 Subject: auxiliary: make primitive splitter assert on unimplemented adjacency prims They are unimplemented, even though the framework makes it possible to implement them well, and nv50 needs them. --- src/gallium/auxiliary/util/u_split_prim.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_split_prim.h b/src/gallium/auxiliary/util/u_split_prim.h index e526a73fc3b..206e1ec3118 100644 --- a/src/gallium/auxiliary/util/u_split_prim.h +++ b/src/gallium/auxiliary/util/u_split_prim.h @@ -92,8 +92,11 @@ util_split_prim_next(struct util_split_prim *s, unsigned max_verts) max_verts &= ~1; repeat = 2; break; - default: + case PIPE_PRIM_POINTS: break; + default: + /* TODO: implement adjacency primitives */ + assert(0); } s->emit (s->priv, s->p_start, max_verts); -- cgit v1.2.3