vrend: Remove unused struct member

Remove unused 'usage' member of struct vrend_transfer_info.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Alexandros Frantzis 6 years ago committed by Gert Wollny
parent 0c09d8441b
commit 7438b455ed
  1. 3
      src/vrend_decode.c
  2. 3
      src/vrend_renderer.c
  3. 4
      src/vrend_renderer.h

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

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

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

Loading…
Cancel
Save