diff options
Diffstat (limited to 'src/gallium/drivers/lima/lima_context.c')
-rw-r--r-- | src/gallium/drivers/lima/lima_context.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/gallium/drivers/lima/lima_context.c b/src/gallium/drivers/lima/lima_context.c index a031222a423..44f627ac1da 100644 --- a/src/gallium/drivers/lima/lima_context.c +++ b/src/gallium/drivers/lima/lima_context.c @@ -29,7 +29,6 @@ #include "util/u_debug.h" #include "util/ralloc.h" #include "util/u_inlines.h" -#include "util/u_suballoc.h" #include "util/hash_table.h" #include "lima_screen.h" @@ -70,19 +69,15 @@ 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, bool uploader) + unsigned size) { struct lima_ctx_buff_state *cbs = ctx->buffer_state + buff; void *ret = NULL; cbs->size = align(size, 0x40); - if (uploader) - u_upload_alloc(ctx->uploader, 0, cbs->size, 0x40, &cbs->offset, - &cbs->res, &ret); - else - u_suballocator_alloc(ctx->suballocator, cbs->size, 0x10, - &cbs->offset, &cbs->res); + u_upload_alloc(ctx->uploader, 0, cbs->size, 0x40, &cbs->offset, + &cbs->res, &ret); return ret; } @@ -128,9 +123,6 @@ lima_context_destroy(struct pipe_context *pctx) if (ctx->blitter) util_blitter_destroy(ctx->blitter); - if (ctx->suballocator) - u_suballocator_destroy(ctx->suballocator); - if (ctx->uploader) u_upload_destroy(ctx->uploader); @@ -220,13 +212,6 @@ lima_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) ctx->base.stream_uploader = ctx->uploader; ctx->base.const_uploader = ctx->uploader; - /* for varying output which need not mmap */ - ctx->suballocator = - u_suballocator_create(&ctx->base, 1024 * 1024, 0, - PIPE_USAGE_STREAM, 0, false); - if (!ctx->suballocator) - goto err_out; - util_dynarray_init(&ctx->vs_cmd_array, ctx); util_dynarray_init(&ctx->plbu_cmd_array, ctx); |