projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
764c172
)
llvmpipe: Move tile coordinate assertion into a more useful place.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 11 Feb 2010 10:59:41 +0000
(10:59 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 11 Feb 2010 10:59:41 +0000
(10:59 +0000)
src/gallium/drivers/llvmpipe/lp_scene.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_scene.h
b/src/gallium/drivers/llvmpipe/lp_scene.h
index fb478cc2eb58ea50b678731836381309797445f3..23a54f0253186e8cd48a470a7ad5023c2d7d0e26 100644
(file)
--- 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 );
}