*/
struct fd_hw_sample *sample_cache[MAX_HW_SAMPLE_PROVIDERS];
- /* which sample providers were active in the current batch: */
- uint32_t active_providers;
+ /* which sample providers were used in the current batch: */
+ uint32_t query_providers_used;
/* tracking for current stage, to know when to start/stop
* any active queries:
DBG("%p", hq);
assert(idx >= 0); /* query never would have been created otherwise */
assert(!hq->period);
- batch->active_providers |= (1 << idx);
+ batch->query_providers_used |= (1 << idx);
hq->period = slab_alloc_st(&batch->ctx->sample_period_pool);
list_inithead(&hq->period->list);
hq->period->start = get_sample(batch, ring, hq->base.type);
DBG("%p", hq);
assert(idx >= 0); /* query never would have been created otherwise */
assert(hq->period && !hq->period->end);
- assert(batch->active_providers & (1 << idx));
+ assert(batch->query_providers_used & (1 << idx));
hq->period->end = get_sample(batch, ring, hq->base.type);
list_addtail(&hq->period->list, &hq->periods);
hq->period = NULL;
{
struct fd_context *ctx = batch->ctx;
for (int idx = 0; idx < MAX_HW_SAMPLE_PROVIDERS; idx++) {
- if (batch->active_providers & (1 << idx)) {
+ if (batch->query_providers_used & (1 << idx)) {
assert(ctx->hw_sample_providers[idx]);
if (ctx->hw_sample_providers[idx]->enable)
ctx->hw_sample_providers[idx]->enable(ctx, ring);
}
}
- batch->active_providers = 0; /* clear it for next frame */
+ batch->query_providers_used = 0; /* clear it for next frame */
}
void