aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_submit.h
diff options
context:
space:
mode:
authorQiang Yu <[email protected]>2020-02-09 11:49:52 +0800
committerMarge Bot <[email protected]>2020-02-17 02:54:15 +0000
commit545988c6172e51ea00c87abe966d5ecd03b08e98 (patch)
tree32fc82c93fb47ede92ca45f2cf714a67bb663c05 /src/gallium/drivers/lima/lima_submit.h
parent0caefb6d9df8f2b53fa0703a7bd7a665dabe77b2 (diff)
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 <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
Diffstat (limited to 'src/gallium/drivers/lima/lima_submit.h')
-rw-r--r--src/gallium/drivers/lima/lima_submit.h2
1 files changed, 2 insertions, 0 deletions
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);