From ec9cfac7682268a2d81d6edaf81f8fbb770e17ed Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 12 Jan 2010 17:12:07 -0700 Subject: llvmpipe: debug checks: make sure scene is empty at key points --- src/gallium/drivers/llvmpipe/lp_scene.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c') diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index 70d5847d8e..7ec3206b81 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; } -- cgit v1.2.3