They're not really exhaustive and not so useful either.
}
r600_need_cs_space(ctx, 0, TRUE);
-
- /* at this point everything is flushed and ctx->pm4_cdwords = 0 */
- if (unlikely((ctx->pm4_dirty_cdwords + ndwords) > RADEON_MAX_CMDBUF_DWORDS)) {
- R600_ERR("context is too big to be scheduled\n");
- return;
- }
+ assert(ctx->pm4_cdwords + ctx->pm4_dirty_cdwords + ndwords < RADEON_MAX_CMDBUF_DWORDS);
/* enough room to copy packet */
LIST_FOR_EACH_ENTRY_SAFE(dirty_block, next_block, &ctx->dirty,list) {
}
r600_need_cs_space(ctx, 0, TRUE);
-
- /* at this point everything is flushed and ctx->pm4_cdwords = 0 */
- if (unlikely((ctx->pm4_dirty_cdwords + ndwords) > RADEON_MAX_CMDBUF_DWORDS)) {
- R600_ERR("context is too big to be scheduled\n");
- return;
- }
+ assert(ctx->pm4_cdwords + ctx->pm4_dirty_cdwords + ndwords < RADEON_MAX_CMDBUF_DWORDS);
/* enough room to copy packet */
LIST_FOR_EACH_ENTRY_SAFE(dirty_block, next_block, &ctx->dirty, list) {