From 7438b455ed6f28484b89b9ef09bddfecd3d560bc Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Mon, 20 May 2019 11:43:32 +0300 Subject: [PATCH] vrend: Remove unused struct member Remove unused 'usage' member of struct vrend_transfer_info. Signed-off-by: Alexandros Frantzis Reviewed-by: Chia-I Wu Reviewed-by: Gurchetan Singh --- src/vrend_decode.c | 3 +-- src/vrend_renderer.c | 3 +-- src/vrend_renderer.h | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/vrend_decode.c b/src/vrend_decode.c index d6ec385..b3fc7df 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -350,7 +350,6 @@ static void vrend_decode_transfer_common(struct vrend_decode_ctx *ctx, struct vr { info->handle = get_buf_entry(ctx, VIRGL_RESOURCE_IW_RES_HANDLE); info->level = get_buf_entry(ctx, VIRGL_RESOURCE_IW_LEVEL); - info->usage = get_buf_entry(ctx, VIRGL_RESOURCE_IW_USAGE); info->stride = get_buf_entry(ctx, VIRGL_RESOURCE_IW_STRIDE); info->layer_stride = get_buf_entry(ctx, VIRGL_RESOURCE_IW_LAYER_STRIDE); info->box->x = get_buf_entry(ctx, VIRGL_RESOURCE_IW_X); @@ -388,7 +387,7 @@ static int vrend_decode_resource_inline_write(struct vrend_decode_ctx *ctx, uint info.iovec = &dataiovec; info.iovec_cnt = 1; - return vrend_transfer_inline_write(ctx->grctx, &info, info.usage); + return vrend_transfer_inline_write(ctx->grctx, &info); } static int vrend_decode_draw_vbo(struct vrend_decode_ctx *ctx, int length) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index bb220cc..cd25dc0 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7112,8 +7112,7 @@ int vrend_renderer_transfer_iov(const struct vrend_transfer_info *info, } int vrend_transfer_inline_write(struct vrend_context *ctx, - struct vrend_transfer_info *info, - UNUSED unsigned usage) + struct vrend_transfer_info *info) { struct vrend_resource *res; diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index 4ff7892..a595b3b 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -105,7 +105,6 @@ struct vrend_transfer_info { int level; uint32_t stride; uint32_t layer_stride; - uint32_t usage; unsigned int iovec_cnt; struct iovec *iovec; uint64_t offset; @@ -223,8 +222,7 @@ void vrend_set_num_vbo(struct vrend_context *ctx, int num_vbo); int vrend_transfer_inline_write(struct vrend_context *ctx, - struct vrend_transfer_info *info, - unsigned usage); + struct vrend_transfer_info *info); void vrend_set_viewport_states(struct vrend_context *ctx, uint32_t start_slot, uint32_t num_viewports,