Mesa (lp-binning): llvmpipe: assert that we' re putting data into a valid bin
Brian Paul
brianp at kemper.freedesktop.org
Wed Jan 13 00:17:08 UTC 2010
Module: Mesa
Branch: lp-binning
Commit: c560b97b17a009f5ea8423523cd3a70fe7b506e9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c560b97b17a009f5ea8423523cd3a70fe7b506e9
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 12 17:11:40 2010 -0700
llvmpipe: assert that we're putting data into a valid bin
---
src/gallium/drivers/llvmpipe/lp_scene.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h
index 7255727..b59b687 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.h
+++ b/src/gallium/drivers/llvmpipe/lp_scene.h
@@ -227,6 +227,9 @@ lp_scene_bin_command( struct lp_scene *scene,
struct cmd_bin *bin = lp_scene_get_bin(scene, x, y);
struct cmd_block_list *list = &bin->commands;
+ assert(x < scene->tiles_x);
+ assert(y < scene->tiles_y);
+
if (list->tail->count == CMD_BLOCK_MAX) {
lp_bin_new_cmd_block( list );
}
More information about the mesa-commit
mailing list