virgl: pass res_id to get_blob

It will be used by the proxy context.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
macos/master
Yiwei Zhang 2 years ago
parent f94c675139
commit 106179de5b
  1. 1
      src/proxy/proxy_context.c
  2. 1
      src/venus/vkr_context.c
  3. 1
      src/virgl_context.h
  4. 2
      src/virglrenderer.c
  5. 1
      src/vrend_decode.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,

@ -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,

@ -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,

@ -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;

@ -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,

Loading…
Cancel
Save