gallium: added some sanity check assertions
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Jul 2008 19:27:44 +0000 (13:27 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Jul 2008 19:29:25 +0000 (13:29 -0600)
src/gallium/drivers/softpipe/sp_setup.c

index e99df9d0181e1dd22a5e259c64b2889170b1024b..4321ca46f42471098d81e6901300bb2ac7bd6e01 100644 (file)
@@ -941,6 +941,11 @@ setup_line(struct setup_context *setup,
    print_vertex(setup, v1);
 #endif
 
+   assert(v0[0][0] < 1.0e9);
+   assert(v0[0][1] < 1.0e9);
+   assert(v1[0][0] < 1.0e9);
+   assert(v1[0][1] < 1.0e9);
+
    if (setup->softpipe->no_rast)
       return;