llvmpipe: assert that we're putting data into a valid bin

This commit is contained in:
Brian Paul 2010-01-12 17:11:40 -07:00
parent 214ffad015
commit c560b97b17
1 changed files with 3 additions and 0 deletions

View File

@ -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 );
}