zink: set batch state queue on creation

make this easier to find

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13885>
This commit is contained in:
Mike Blumenkrantz
2021-11-19 13:42:41 -05:00
committed by Marge Bot
parent b8ffd7a888
commit e92b8956c7

View File

@@ -242,6 +242,7 @@ create_batch_state(struct zink_context *ctx)
goto fail;
util_queue_fence_init(&bs->flush_completed);
bs->queue = screen->threaded ? screen->thread_queue : screen->queue;
return bs;
fail:
@@ -619,11 +620,9 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch)
return;
if (screen->threaded) {
bs->queue = screen->thread_queue;
util_queue_add_job(&screen->flush_queue, bs, &bs->flush_completed,
submit_queue, post_submit, 0);
} else {
bs->queue = screen->queue;
submit_queue(bs, NULL, 0);
post_submit(bs, NULL, 0);
}