zink: remove zink_context::curr_batch

this hasn't been a real value in a while and it's confusing to have
it still exist

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13247>
This commit is contained in:
Mike Blumenkrantz 2021-10-06 09:20:41 -04:00 committed by Marge Bot
parent d1e0a9a4ff
commit c161e08c9c
2 changed files with 0 additions and 3 deletions

View File

@ -309,7 +309,6 @@ zink_start_batch(struct zink_context *ctx, struct zink_batch *batch)
if (VKCTX(BeginCommandBuffer)(batch->state->barrier_cmdbuf, &cbbi) != VK_SUCCESS)
debug_printf("vkBeginCommandBuffer failed\n");
batch->state->fence.batch_id = ctx->curr_batch;
batch->state->fence.completed = false;
if (ctx->last_fence) {
struct zink_batch_state *last_state = zink_batch_state(ctx->last_fence);

View File

@ -195,8 +195,6 @@ struct zink_context {
struct pipe_device_reset_callback reset;
uint32_t curr_batch; //the current batch id
simple_mtx_t batch_mtx;
struct zink_fence *deferred_fence;
struct zink_fence *last_fence; //the last command buffer submitted