return cs->start - (uint32_t *) cs->bos[cs->bo_count - 1]->map;
}
-/**
- * Get the size of the command packets emitted since the last call to
- * tu_cs_add_entry.
- */
-static uint32_t
-tu_cs_get_size(const struct tu_cs *cs)
-{
- return cs->cur - cs->start;
-}
-
-/**
- * Return true if there is no command packet emitted since the last call to
- * tu_cs_add_entry.
- */
-static uint32_t
-tu_cs_is_empty(const struct tu_cs *cs)
-{
- return tu_cs_get_size(cs) == 0;
-}
-
/*
* Allocate and add a BO to a command stream. Following command packets will
* be emitted to the new BO.
tu_cs_alloc(struct tu_cs *cs,
uint32_t count,
uint32_t size,
- struct ts_cs_memory *memory)
+ struct tu_cs_memory *memory)
{
assert(cs->mode == TU_CS_MODE_SUB_STREAM);
assert(size && size <= 1024);