Searched refs:current_batch_idx (Results 1 – 2 of 2) sorted by relevance
181 unsigned current_batch_idx; member286 assert(ctx->current_batch_idx < ARRAY_SIZE(ctx->batches)); in d3d12_current_batch()287 return ctx->batches + ctx->current_batch_idx; in d3d12_current_batch()291 unsigned oldest = (ctx->current_batch_idx + 1) % ARRAY_SIZE(ctx->batches); \292 while (ctx->batches[oldest].fence == NULL && oldest != ctx->current_batch_idx) \295 for (; oldest != ctx->current_batch_idx; \
1949 ctx->current_batch_idx++; in d3d12_flush_cmdlist()1950 if (ctx->current_batch_idx == ARRAY_SIZE(ctx->batches)) in d3d12_flush_cmdlist()1951 ctx->current_batch_idx = 0; in d3d12_flush_cmdlist()