From c3bbe4f7f8bd88ee92179679526664467e83c45a Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Tue, 4 Feb 2020 10:54:40 +0800 Subject: 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 Signed-off-by: Qiang Yu Part-of: --- src/gallium/drivers/lima/lima_context.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gallium/drivers/lima/lima_context.h') 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); -- cgit v1.2.3