From 545988c6172e51ea00c87abe966d5ecd03b08e98 Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Sun, 9 Feb 2020 11:49:52 +0800 Subject: lima: add lima_submit_get Replace all usage of "ctx->submit" in draw code path with lima_submit_get(). This function will create new submit in the following changes. Reviewed-by: Vasily Khoruzhick Signed-off-by: Qiang Yu Part-of: --- src/gallium/drivers/lima/lima_submit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/lima/lima_submit.h') diff --git a/src/gallium/drivers/lima/lima_submit.h b/src/gallium/drivers/lima/lima_submit.h index 47203107120..b538f4c8be7 100644 --- a/src/gallium/drivers/lima/lima_submit.h +++ b/src/gallium/drivers/lima/lima_submit.h @@ -31,6 +31,8 @@ struct lima_context; struct lima_submit; struct lima_bo; +struct lima_submit *lima_submit_get(struct lima_context *ctx); + bool lima_submit_add_bo(struct lima_submit *submit, int pipe, struct lima_bo *bo, uint32_t flags); bool lima_submit_has_bo(struct lima_submit *submit, struct lima_bo *bo, bool all); -- cgit v1.2.3