summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-02-11 10:59:41 +0000
committerJosé Fonseca <[email protected]>2010-02-11 10:59:41 +0000
commit8c0391726a89414356c705fcc2d5a38d12d0fe2b (patch)
treed183ae4998ab16ddc2b394d7b2a41e32d5ab4fc7 /src/gallium/drivers/llvmpipe
parent764c172aa96d48e1cf18b903661064c1ef8df1b5 (diff)
llvmpipe: Move tile coordinate assertion into a more useful place.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.h6
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 fb478cc2eb5..23a54f02531 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.h
+++ b/src/gallium/drivers/llvmpipe/lp_scene.h
@@ -227,6 +227,9 @@ 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];
}
@@ -247,9 +250,6 @@ 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 );
}