diff options
Diffstat (limited to 'src/gallium/drivers/zink/zink_context.h')
-rw-r--r-- | src/gallium/drivers/zink/zink_context.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h index 977b8317614..9188c01eaaa 100644 --- a/src/gallium/drivers/zink/zink_context.h +++ b/src/gallium/drivers/zink/zink_context.h @@ -113,12 +113,18 @@ zink_context(struct pipe_context *context) } static inline struct zink_batch * -zink_context_curr_batch(struct zink_context *ctx) +zink_curr_batch(struct zink_context *ctx) { assert(ctx->curr_batch < ARRAY_SIZE(ctx->batches)); return ctx->batches + ctx->curr_batch; } +struct zink_batch * +zink_batch_rp(struct zink_context *ctx); + +struct zink_batch * +zink_batch_no_rp(struct zink_context *ctx); + void zink_resource_barrier(VkCommandBuffer cmdbuf, struct zink_resource *res, VkImageAspectFlags aspect, VkImageLayout new_layout); |