summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_scene.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-10 18:07:38 -0700
committerBrian Paul <brianp@vmware.com>2010-02-23 18:57:17 -0700
commitc8aaa24f2da4e4da3d726e0a58459c7d9cb64b93 (patch)
tree39c2fd2596d3e1f396a43351f424ccc53f18bfd2 /src/gallium/drivers/llvmpipe/lp_scene.c
parent295a02549d74559831023455d1bb0ebf42bc1415 (diff)
llvmpipe: added some assertions
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.c3
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 b7116297ec..cba0e21298 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);