It's used for all types of resources.
Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
if (doflushwait)
ctx->flush(ctx, NULL, 0);
- trans = slab_alloc(&vctx->texture_transfer_pool);
+ trans = slab_alloc(&vctx->transfer_pool);
if (!trans)
return NULL;
}
}
- slab_free(&vctx->texture_transfer_pool, trans);
+ slab_free(&vctx->transfer_pool, trans);
}
static void virgl_buffer_transfer_flush_region(struct pipe_context *ctx,
u_upload_destroy(vctx->uploader);
util_primconvert_destroy(vctx->primconvert);
- slab_destroy_child(&vctx->texture_transfer_pool);
+ slab_destroy_child(&vctx->transfer_pool);
FREE(vctx);
}
virgl_init_so_functions(vctx);
list_inithead(&vctx->to_flush_bufs);
- slab_create_child(&vctx->texture_transfer_pool, &rs->texture_transfer_pool);
+ slab_create_child(&vctx->transfer_pool, &rs->transfer_pool);
vctx->primconvert = util_primconvert_create(&vctx->base, rs->caps.caps.v1.prim_mask);
vctx->uploader = u_upload_create(&vctx->base, 1024 * 1024,
struct pipe_framebuffer_state framebuffer;
- struct slab_child_pool texture_transfer_pool;
+ struct slab_child_pool transfer_pool;
struct u_upload_mgr *uploader;
struct virgl_screen *vscreen = virgl_screen(screen);
struct virgl_winsys *vws = vscreen->vws;
- slab_destroy_parent(&vscreen->texture_transfer_pool);
+ slab_destroy_parent(&vscreen->transfer_pool);
if (vws)
vws->destroy(vws);
screen->refcnt = 1;
- slab_create_parent(&screen->texture_transfer_pool, sizeof(struct virgl_transfer), 16);
+ slab_create_parent(&screen->transfer_pool, sizeof(struct virgl_transfer), 16);
return &screen->base;
}
struct virgl_drm_caps caps;
- struct slab_parent_pool texture_transfer_pool;
+ struct slab_parent_pool transfer_pool;
uint32_t sub_ctx_id;
};
if (doflushwait)
ctx->flush(ctx, NULL, 0);
- trans = slab_alloc(&vctx->texture_transfer_pool);
+ trans = slab_alloc(&vctx->transfer_pool);
if (!trans)
return NULL;
ptr = vs->vws->resource_map(vs->vws, hw_res);
if (!ptr) {
- slab_free(&vctx->texture_transfer_pool, trans);
+ slab_free(&vctx->transfer_pool, trans);
return NULL;
}
if (trans->resolve_tmp)
pipe_resource_reference((struct pipe_resource **)&trans->resolve_tmp, NULL);
- slab_free(&vctx->texture_transfer_pool, trans);
+ slab_free(&vctx->transfer_pool, trans);
}