diff options
author | Brian Paul <[email protected]> | 2010-02-10 18:07:38 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-23 18:57:17 -0700 |
commit | c8aaa24f2da4e4da3d726e0a58459c7d9cb64b93 (patch) | |
tree | 39c2fd2596d3e1f396a43351f424ccc53f18bfd2 /src/gallium | |
parent | 295a02549d74559831023455d1bb0ebf42bc1415 (diff) |
llvmpipe: added some assertions
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |