From: Brian Paul Date: Thu, 11 Feb 2010 01:07:38 +0000 (-0700) Subject: llvmpipe: added some assertions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8aaa24f2da4e4da3d726e0a58459c7d9cb64b93;p=mesa.git llvmpipe: added some assertions --- diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index b7116297ece..cba0e212985 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -100,6 +100,9 @@ lp_scene_bin_reset(struct lp_scene *scene, unsigned x, unsigned y) struct cmd_block *block; struct cmd_block *tmp; + assert(x < TILES_X); + assert(y < TILES_Y); + for (block = list->head; block != list->tail; block = tmp) { tmp = block->next; FREE(block);