From 82b548f13a6699715e33aaaa89b4b9e970cb5d20 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 29 Mar 2020 16:16:30 -0700 Subject: [PATCH] vrend: remove vrend_transfer_info::ctx_id It is unused. Signed-off-by: Chia-I Wu Tested-by: Gurchetan Singh Reviewed-by: Gurchetan Singh --- src/virglrenderer.c | 2 -- src/vrend_decode.c | 6 ++---- src/vrend_iov.h | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/virglrenderer.c b/src/virglrenderer.c index 58f51ab..588cd79 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -180,7 +180,6 @@ int virgl_renderer_transfer_write_iov(uint32_t handle, if (!res) return EINVAL; - transfer_info.ctx_id = ctx_id; transfer_info.level = level; transfer_info.stride = stride; transfer_info.layer_stride = layer_stride; @@ -220,7 +219,6 @@ int virgl_renderer_transfer_read_iov(uint32_t handle, uint32_t ctx_id, if (!res) return EINVAL; - transfer_info.ctx_id = ctx_id; transfer_info.level = level; transfer_info.stride = stride; transfer_info.layer_stride = layer_stride; diff --git a/src/vrend_decode.c b/src/vrend_decode.c index 4b80606..34943aa 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -387,7 +387,6 @@ static int vrend_decode_resource_inline_write(struct vrend_decode_ctx *ctx, uint data_len = (length - 11) * 4; data = get_buf_ptr(ctx, VIRGL_RESOURCE_IW_DATA_START); - info.ctx_id = 0; info.offset = 0; dataiovec.iov_base = (void*)data; @@ -1344,7 +1343,7 @@ static int vrend_decode_set_tweaks(struct vrend_decode_ctx *ctx, int length) } -static int vrend_decode_transfer3d(struct vrend_decode_ctx *ctx, int length, uint32_t ctx_id) +static int vrend_decode_transfer3d(struct vrend_decode_ctx *ctx, int length) { struct pipe_box box; uint32_t dst_handle; @@ -1355,7 +1354,6 @@ static int vrend_decode_transfer3d(struct vrend_decode_ctx *ctx, int length, uin memset(&info, 0, sizeof(info)); info.box = &box; - info.ctx_id = ctx_id; vrend_decode_transfer_common(ctx, &dst_handle, &info); info.offset = get_buf_entry(ctx, VIRGL_TRANSFER3D_DATA_OFFSET); int transfer_mode = get_buf_entry(ctx, VIRGL_TRANSFER3D_DIRECTION); @@ -1620,7 +1618,7 @@ static int vrend_decode_ctx_submit_cmd(struct virgl_context *ctx, ret = vrend_decode_get_query_result_qbo(gdctx, len); break; case VIRGL_CCMD_TRANSFER3D: - ret = vrend_decode_transfer3d(gdctx, len, gdctx->base.ctx_id); + ret = vrend_decode_transfer3d(gdctx, len); break; case VIRGL_CCMD_COPY_TRANSFER3D: ret = vrend_decode_copy_transfer3d(gdctx, len); diff --git a/src/vrend_iov.h b/src/vrend_iov.h index bd173af..461785d 100644 --- a/src/vrend_iov.h +++ b/src/vrend_iov.h @@ -38,7 +38,6 @@ struct iovec { #endif struct vrend_transfer_info { - uint32_t ctx_id; int level; uint32_t stride; uint32_t layer_stride;