diff options
author | Qiang Yu <[email protected]> | 2020-02-04 10:54:40 +0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-17 02:54:15 +0000 |
commit | c3bbe4f7f8bd88ee92179679526664467e83c45a (patch) | |
tree | a795819f08f3f95529e16dbf25eda8fe7eb03f21 /src/gallium/drivers/lima/lima_context.h | |
parent | 9f924c795b9520c49572b54bfab07731d4f54e6e (diff) |
lima: remove lima_ctx_buff_va submit flags (v2)
We don't have any shared lima_ctx_buff for both GP and PP,
so no need to have these flags.
v2:
still add submit in lima_ctx_buff_va because some bo need
to exist cross flush, so not every submit will call
lima_ctx_buff_alloc.
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_context.h')
-rw-r--r-- | src/gallium/drivers/lima/lima_context.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/lima/lima_context.h b/src/gallium/drivers/lima/lima_context.h index e61605faacf..436a2ab1339 100644 --- a/src/gallium/drivers/lima/lima_context.h +++ b/src/gallium/drivers/lima/lima_context.h @@ -133,6 +133,7 @@ enum lima_ctx_buff { lima_ctx_buff_pp_tex_desc, lima_ctx_buff_pp_stack, lima_ctx_buff_num, + lima_ctx_buff_num_gp = lima_ctx_buff_pp_plb_rsw, }; struct lima_ctx_buff_state { @@ -278,11 +279,7 @@ lima_sampler_view(struct pipe_sampler_view *psview) return (struct lima_sampler_view *)psview; } -#define LIMA_CTX_BUFF_SUBMIT_GP (1 << 0) -#define LIMA_CTX_BUFF_SUBMIT_PP (1 << 1) - -uint32_t lima_ctx_buff_va(struct lima_context *ctx, enum lima_ctx_buff buff, - unsigned submit); +uint32_t lima_ctx_buff_va(struct lima_context *ctx, enum lima_ctx_buff buff); void *lima_ctx_buff_map(struct lima_context *ctx, enum lima_ctx_buff buff); void *lima_ctx_buff_alloc(struct lima_context *ctx, enum lima_ctx_buff buff, unsigned size); |