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:
parent
d1e0a9a4ff
commit
c161e08c9c
|
@ -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)
|
if (VKCTX(BeginCommandBuffer)(batch->state->barrier_cmdbuf, &cbbi) != VK_SUCCESS)
|
||||||
debug_printf("vkBeginCommandBuffer failed\n");
|
debug_printf("vkBeginCommandBuffer failed\n");
|
||||||
|
|
||||||
batch->state->fence.batch_id = ctx->curr_batch;
|
|
||||||
batch->state->fence.completed = false;
|
batch->state->fence.completed = false;
|
||||||
if (ctx->last_fence) {
|
if (ctx->last_fence) {
|
||||||
struct zink_batch_state *last_state = zink_batch_state(ctx->last_fence);
|
struct zink_batch_state *last_state = zink_batch_state(ctx->last_fence);
|
||||||
|
|
|
@ -195,8 +195,6 @@ struct zink_context {
|
||||||
|
|
||||||
struct pipe_device_reset_callback reset;
|
struct pipe_device_reset_callback reset;
|
||||||
|
|
||||||
uint32_t curr_batch; //the current batch id
|
|
||||||
|
|
||||||
simple_mtx_t batch_mtx;
|
simple_mtx_t batch_mtx;
|
||||||
struct zink_fence *deferred_fence;
|
struct zink_fence *deferred_fence;
|
||||||
struct zink_fence *last_fence; //the last command buffer submitted
|
struct zink_fence *last_fence; //the last command buffer submitted
|
||||||
|
|
Loading…
Reference in New Issue