From: Brian Paul Date: Tue, 15 Jul 2008 19:27:44 +0000 (-0600) Subject: gallium: added some sanity check assertions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f006358d56e6b24c3e32665e088d5ee11877ec2c;p=mesa.git gallium: added some sanity check assertions --- diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c index e99df9d0181..4321ca46f42 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;