llvmpipe: added some assertions
authorBrian Paul <brianp@vmware.com>
Thu, 11 Feb 2010 01:07:38 +0000 (18:07 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 01:57:17 +0000 (18:57 -0700)
src/gallium/drivers/llvmpipe/lp_scene.c

index b7116297ece0b01ad8c2acb5e2eb5c55d52d1984..cba0e2129851f08781c4523492ecccd997de126f 100644 (file)
@@ -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);