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:
committed by
Marge Bot
parent
67b20bff09
commit
fec07a664e
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user