llvmpipe: added some assertions

This commit is contained in:
Brian Paul
2010-02-10 18:07:38 -07:00
parent 295a02549d
commit c8aaa24f2d

View 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);