Acked-by: Jordan Justen <jordan.l.justen@intel.com>
if (pfence)
zink_fence_reference(zink_screen(pctx->screen), (struct zink_fence **)pfence,
- ctx->cmdbufs[0].fence);
+ zink_context_curr_cmdbuf(ctx)->fence);
}
static void
return (struct zink_context *)context;
}
+static inline struct zink_cmdbuf *
+zink_context_curr_cmdbuf(struct zink_context *ctx)
+{
+ return ctx->cmdbufs + 0;
+}
+
void
zink_resource_barrier(VkCommandBuffer cmdbuf, struct zink_resource *res,
VkImageAspectFlags aspect, VkImageLayout new_layout);