Revert "llvmpipe: Move tile coordinate assertion into a more useful place."
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 11 Feb 2010 12:14:01 +0000 (12:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 11 Feb 2010 12:14:01 +0000 (12:14 +0000)
This reverts commit 8c0391726a89414356c705fcc2d5a38d12d0fe2b.

Too pendantic.

src/gallium/drivers/llvmpipe/lp_scene.h

index 23a54f0..fb478cc 100644 (file)
@@ -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 );
    }