diff --git a/src/venus/vkr_context.c b/src/venus/vkr_context.c index 63c79e7..17e7863 100644 --- a/src/venus/vkr_context.c +++ b/src/venus/vkr_context.c @@ -267,6 +267,7 @@ vkr_context_submit_cmd(struct virgl_context *base, const void *buffer, size_t si static int vkr_context_get_blob_locked(struct virgl_context *base, uint64_t blob_id, + UNUSED uint64_t blob_size, uint32_t flags, struct virgl_context_blob *blob) { @@ -356,6 +357,7 @@ vkr_context_get_blob_locked(struct virgl_context *base, static int vkr_context_get_blob(struct virgl_context *base, uint64_t blob_id, + uint64_t blob_size, uint32_t flags, struct virgl_context_blob *blob) { @@ -363,7 +365,7 @@ vkr_context_get_blob(struct virgl_context *base, int ret; mtx_lock(&ctx->mutex); - ret = vkr_context_get_blob_locked(base, blob_id, flags, blob); + ret = vkr_context_get_blob_locked(base, blob_id, blob_size, flags, blob); /* XXX unlock in vkr_context_get_blob_done on success */ if (ret) mtx_unlock(&ctx->mutex); diff --git a/src/virgl_context.h b/src/virgl_context.h index ea86b31..8a7fed2 100644 --- a/src/virgl_context.h +++ b/src/virgl_context.h @@ -96,6 +96,7 @@ struct virgl_context { */ int (*get_blob)(struct virgl_context *ctx, uint64_t blob_id, + uint64_t blob_size, uint32_t blob_flags, struct virgl_context_blob *blob); void (*get_blob_done)(struct virgl_context *ctx, diff --git a/src/virglrenderer.c b/src/virglrenderer.c index 44982d7..9e9cc07 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -877,7 +877,7 @@ int virgl_renderer_resource_create_blob(const struct virgl_renderer_resource_cre if (!ctx) return -EINVAL; - ret = ctx->get_blob(ctx, args->blob_id, args->blob_flags, &blob); + ret = ctx->get_blob(ctx, args->blob_id, args->size, args->blob_flags, &blob); if (ret) return ret; diff --git a/src/vrend_decode.c b/src/vrend_decode.c index 6f5bd86..3f0b9e6 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -1579,6 +1579,7 @@ static int vrend_decode_ctx_transfer_3d(struct virgl_context *ctx, static int vrend_decode_ctx_get_blob(struct virgl_context *ctx, uint64_t blob_id, + UNUSED uint64_t blob_size, UNUSED uint32_t blob_flags, struct virgl_context_blob *blob) {