summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-12 17:12:07 -0700
committerBrian Paul <[email protected]>2010-01-12 17:12:07 -0700
commitec9cfac7682268a2d81d6edaf81f8fbb770e17ed (patch)
tree882acd028386913cb5569311ecf09285375e37b0 /src/gallium/drivers/llvmpipe/lp_scene.c
parentc560b97b17a009f5ea8423523cd3a70fe7b506e9 (diff)
llvmpipe: debug checks: make sure scene is empty at key points
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c
index 70d5847d8ec..7ec3206b817 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.c
+++ b/src/gallium/drivers/llvmpipe/lp_scene.c
@@ -116,6 +116,8 @@ lp_scene_reset(struct lp_scene *scene )
}
}
+ assert(lp_scene_is_empty(scene));
+
/* Free all but last binned data block:
*/
{
@@ -163,6 +165,8 @@ void
lp_scene_set_framebuffer_size( struct lp_scene *scene,
unsigned width, unsigned height )
{
+ assert(lp_scene_is_empty(scene));
+
scene->tiles_x = align(width, TILE_SIZE) / TILE_SIZE;
scene->tiles_y = align(height, TILE_SIZE) / TILE_SIZE;
}