From: Brian Paul Date: Wed, 13 Jan 2010 00:11:40 +0000 (-0700) Subject: llvmpipe: assert that we're putting data into a valid bin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c560b97b17a009f5ea8423523cd3a70fe7b506e9;p=mesa.git llvmpipe: assert that we're putting data into a valid bin --- diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h index 72557277851..b59b6870026 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 ); }