diff options
author | José Fonseca <[email protected]> | 2010-02-11 12:14:01 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-11 12:14:01 +0000 |
commit | be29a60f9ec273931ec2cc244619a387de3075a0 (patch) | |
tree | 558b3842b7698842a422444def6a75b017164b0b /src | |
parent | c72e8b3edd81c524f3237a27e6e91208ae2196c5 (diff) |
Revert "llvmpipe: Move tile coordinate assertion into a more useful place."
This reverts commit 8c0391726a89414356c705fcc2d5a38d12d0fe2b.
Too pendantic.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h index 23a54f02531..fb478cc2eb5 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.h +++ b/src/gallium/drivers/llvmpipe/lp_scene.h @@ -227,9 +227,6 @@ lp_scene_putback_data( struct lp_scene *scene, unsigned size) static INLINE struct cmd_bin * lp_scene_get_bin(struct lp_scene *scene, unsigned x, unsigned y) { - assert(x < scene->tiles_x); - assert(y < scene->tiles_y); - return &scene->tile[x][y]; } @@ -250,6 +247,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 ); } |