summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-03-06 16:57:20 -0700
committerBrian Paul <[email protected]>2013-03-07 06:28:23 -0700
commit9915636fb8afe75ee2e8e013e4f495a4cb937afb (patch)
treea1044f372f9c6fbd9934b0ba6f216d5a1820a1a1 /src/gallium/drivers/llvmpipe/lp_scene.c
parentc2665aacdd14beec9580246736c602e3ff04d7ae (diff)
llvmpipe: remove the power of two sizeof(struct cmd_block) assertion
It fails on 32-bit systems (I only tested on 64-bit). Power of two size isn't required, so just remove the assertion. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c
index dd0943e9b39..a0912eb0e77 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.c
+++ b/src/gallium/drivers/llvmpipe/lp_scene.c
@@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe )
assert(maxCommandBytes < LP_SCENE_MAX_SIZE);
/* We'll also need space for at least one other data block */
assert(maxCommandPlusData <= LP_SCENE_MAX_SIZE);
-
- /* Ideally, the size of a cmd_block object will be a power of two
- * in order to avoid wasting space when we allocation them from
- * data blocks (which are power of two also).
- */
- assert(sizeof(struct cmd_block) ==
- util_next_power_of_two(sizeof(struct cmd_block)));
}
#endif