-static INLINE void *get_data_aligned( struct data_block_list *list,
- unsigned size,
- unsigned alignment )
-{
- if (list->tail->used + size + alignment - 1 > DATA_BLOCK_SIZE) {
- lp_setup_new_data_block( list );
- }
-
- {
- struct data_block *tail = list->tail;
- ubyte *data = tail->data + tail->used;
- unsigned offset = (((uintptr_t)data + alignment - 1) & ~(alignment - 1)) - (uintptr_t)data;
- tail->used += offset + size;
- return data + offset;
- }
-}
-
-/* Add a command to a given bin.
- */
-static INLINE void bin_command( struct cmd_bin *bin,
- lp_rast_cmd cmd,
- union lp_rast_cmd_arg arg )
-{
- struct cmd_block_list *list = &bin->commands;