summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_setup.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-15 13:27:44 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-15 13:29:25 -0600
commitf006358d56e6b24c3e32665e088d5ee11877ec2c (patch)
treeade48115ac4aac418b8df58bf77cc498a7990b42 /src/gallium/drivers/softpipe/sp_setup.c
parentf6152c35101311c2b128eb23b25b3f38d9e8b5be (diff)
gallium: added some sanity check assertions
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_setup.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index e99df9d018..4321ca46f4 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -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;