Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / intel / compiler / brw_clip_tri.c
index 8ccf9e49b205bfa85c853bc277f34f2e12607f45..194e6ab1d26f39b1859d6d3af98f68b8e3223eb5 100644 (file)
@@ -68,7 +68,7 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,
       i += c->nr_regs;
    }
 
-   if (c->vue_map.num_slots % 2) {
+   if (c->vue_map.num_slots % 2 && nr_verts > 0) {
       /* The VUE has an odd number of slots so the last register is only half
        * used.  Fill the second half with zero.
        */