diff --git a/src/proxy/proxy_context.c b/src/proxy/proxy_context.c index fb4fc8a..7e4da20 100644 --- a/src/proxy/proxy_context.c +++ b/src/proxy/proxy_context.c @@ -295,6 +295,7 @@ fail: static int proxy_context_get_blob(struct virgl_context *base, + UNUSED uint32_t res_id, uint64_t blob_id, uint64_t blob_size, uint32_t blob_flags, diff --git a/src/venus/vkr_context.c b/src/venus/vkr_context.c index c97bac7..b60c79b 100644 --- a/src/venus/vkr_context.c +++ b/src/venus/vkr_context.c @@ -381,6 +381,7 @@ vkr_context_get_blob_locked(struct virgl_context *base, static int vkr_context_get_blob(struct virgl_context *base, + UNUSED uint32_t res_id, uint64_t blob_id, uint64_t blob_size, uint32_t flags, diff --git a/src/virgl_context.h b/src/virgl_context.h index 5adb6fe..2fb67e9 100644 --- a/src/virgl_context.h +++ b/src/virgl_context.h @@ -92,6 +92,7 @@ struct virgl_context { * destroyed or reject subsequent get_blob calls. */ int (*get_blob)(struct virgl_context *ctx, + uint32_t res_id, uint64_t blob_id, uint64_t blob_size, uint32_t blob_flags, diff --git a/src/virglrenderer.c b/src/virglrenderer.c index 9836691..959e5a8 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -914,7 +914,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->size, args->blob_flags, &blob); + ret = ctx->get_blob(ctx, args->res_handle, 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 57bebf3..621cf0c 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, + UNUSED uint32_t res_id, uint64_t blob_id, UNUSED uint64_t blob_size, UNUSED uint32_t blob_flags,