zink: rework public batch flush function to be useful again

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9726>
This commit is contained in:
Mike Blumenkrantz
2020-11-02 12:23:13 -05:00
committed by Marge Bot
parent 67b20bff09
commit fec07a664e
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -1370,11 +1370,10 @@ zink_flush_compute(struct zink_context *ctx)
flush_batch(ctx, ZINK_QUEUE_COMPUTE);
}
struct zink_batch *
zink_flush_batch(struct zink_context *ctx, struct zink_batch *batch)
void
zink_flush_queue(struct zink_context *ctx, enum zink_queue queue)
{
flush_batch(ctx, batch->queue);
return batch;
flush_batch(ctx, queue);
}
static void
+2 -2
View File
@@ -263,8 +263,8 @@ zink_wait_on_batch(struct zink_context *ctx, enum zink_queue queue, uint32_t bat
void
zink_flush_compute(struct zink_context *ctx);
struct zink_batch *
zink_flush_batch(struct zink_context *ctx, struct zink_batch *batch);
void
zink_flush_queue(struct zink_context *ctx, enum zink_queue queue);
void
zink_maybe_flush_or_stall(struct zink_context *ctx, enum zink_queue queue);