Lines Matching defs:batch
77 struct zink_batch_usage *batch_uses; //batch that the query was started in
102 struct zink_batch *batch = &ctx->batch;
104 VKCTX(CmdBeginQueryIndexedEXT)(batch->state->cmdbuf,
116 struct zink_batch *batch = &ctx->batch;
118 VKCTX(CmdEndQueryIndexedEXT)(batch->state->cmdbuf,
128 struct zink_batch *batch = &ctx->batch;
130 VKCTX(CmdResetQueryPool)(batch->state->cmdbuf, vkq->pool->query_pool, vkq->query_id, 1);
497 struct zink_batch *batch = &zink_context(pctx)->batch;
498 batch->has_work = true;
723 struct zink_batch *batch = &ctx->batch;
731 zink_batch_reference_resource_rw(batch, res, true);
736 VKCTX(CmdCopyQueryPoolResults)(batch->state->cmdbuf, pool, query_id, num_results, res->obj->buffer,
817 begin_query(struct zink_context *ctx, struct zink_batch *batch, struct zink_query *q)
827 batch->has_work = true;
831 VKCTX(CmdWriteTimestamp)(batch->state->cmdbuf, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, start->vkq[0]->pool->query_pool, start->vkq[0]->query_id);
833 zink_batch_usage_set(&q->batch_uses, batch->state);
834 _mesa_set_add(batch->state->active_queries, q);
861 VKCTX(CmdBeginQuery)(batch->state->cmdbuf, start->vkq[0]->pool->query_pool, start->vkq[0]->query_id, flags);
868 zink_batch_usage_set(&q->batch_uses, batch->state);
869 _mesa_set_add(batch->state->active_queries, q);
883 struct zink_batch *batch = &ctx->batch;
901 begin_query(ctx, batch, query);
910 ctx->batch.has_work = true;
916 if (ctx->batch.in_rp)
923 end_query(struct zink_context *ctx, struct zink_batch *batch, struct zink_query *q)
949 VKCTX(CmdEndQuery)(batch->state->cmdbuf, start->vkq[0]->pool->query_pool, start->vkq[0]->query_id);
972 struct zink_batch *batch = &ctx->batch;
991 VKCTX(CmdWriteTimestamp)(batch->state->cmdbuf, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
993 zink_batch_usage_set(&query->batch_uses, batch->state);
994 _mesa_set_add(batch->state->active_queries, query);
997 end_query(ctx, batch, query);
1035 /* if a query isn't active here then we don't need to reactivate it on the next batch */
1037 end_query(ctx, &ctx->batch, query);
1043 zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
1045 set_foreach(batch->state->active_queries, entry) {
1048 /* the fence is going to steal the set off the batch, so we have to copy
1057 zink_resume_queries(struct zink_context *ctx, struct zink_batch *batch)
1061 begin_query(ctx, batch, query);
1094 zink_suspend_queries(ctx, &ctx->batch);
1095 zink_resume_queries(ctx, &ctx->batch);
1118 struct zink_batch *batch = &ctx->batch;
1120 zink_suspend_queries(ctx, batch);
1122 zink_resume_queries(ctx, batch);
1130 struct zink_batch *batch = &ctx->batch;
1139 VKCTX(CmdBeginConditionalRenderingEXT)(batch->state->cmdbuf, &begin_info);
1140 zink_batch_reference_resource_rw(batch, ctx->render_condition.query->predicate, false);
1147 struct zink_batch *batch = &ctx->batch;
1151 VKCTX(CmdEndConditionalRenderingEXT)(batch->state->cmdbuf);
1182 if (ctx->clears_enabled && !ctx->batch.in_rp)
1221 if (ctx->batch.in_rp)