Lines Matching refs:state

107     * before the state is reused
291 if (!batch->state) {
294 struct zink_batch_state *state = create_batch_state(ctx);
295 util_dynarray_append(&ctx->free_batch_states, struct zink_batch_state *, state);
306 batch->state = get_batch_state(ctx, batch);
307 assert(batch->state);
317 batch->state->usage.unflushed = true;
323 VkResult result = VKCTX(BeginCommandBuffer)(batch->state->cmdbuf, &cbbi);
327 result = VKCTX(BeginCommandBuffer)(batch->state->barrier_cmdbuf, &cbbi);
331 batch->state->fence.completed = false;
471 /* once an incomplete state is reached, no more will be complete */
483 bs = batch->state;
496 batch->state->present = zink_kopper_present(screen, batch->swapchain);
497 batch->state->swapchain = batch->swapchain;
518 VkSemaphore acquire = zink_kopper_acquire_submit(zink_screen(batch->state->ctx->base.screen), res);
520 util_dynarray_append(&batch->state->acquires, VkSemaphore, acquire);
524 batch->state->ctx->rp_loadop_changed = true;
527 zink_resource_usage_set(res, batch->state, write);
530 util_dynarray_append(&batch->state->persistent_resources, struct zink_resource_object*, res->obj);
539 if (!zink_resource_usage_matches(res, batch->state) ||
550 util_dynarray_append(&batch->state->acquires, VkSemaphore, sem);
564 const VkDeviceSize resource_size = batch->state->resource_size;
574 if (!batch_ptr_add_usage(batch, batch->state->resources, res->obj))
577 batch->state->resource_size += res->obj->size;
578 check_oom_flush(batch->state->ctx, batch);
585 if (!batch_ptr_add_usage(batch, batch->state->resources, res->obj))
587 batch->state->resource_size += res->obj->size;
588 check_oom_flush(batch->state->ctx, batch);
595 if (!batch_ptr_add_usage(batch, batch->state->bufferviews, buffer_view))
604 if (!batch_ptr_add_usage(batch, batch->state->surfaces, surface))
628 if (zink_batch_usage_matches(pg->batch_uses, batch->state) ||
629 !batch_ptr_add_usage(batch, batch->state->programs, pg))
632 zink_batch_usage_set(&pg->batch_uses, batch->state);
673 if (likely(u == &ctx->batch.state->usage))