auxiliary: make primitive splitter assert on unimplemented adjacency prims
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 11 Aug 2010 08:54:31 +0000 (10:54 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 11 Aug 2010 09:08:51 +0000 (11:08 +0200)
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

index e526a73fc3b4c3702e3949b22c207de8a5e86599..206e1ec3118c233da2ffbdd878d2f272304bfb13 100644 (file)
@@ -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);