vrend: remove unused VREND_RESOURCE_STORAGE_SYSTEM

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 6 years ago committed by Gurchetan Singh
parent ddcb1b90d8
commit ef72ec3c90
  1. 11
      src/vrend_renderer.c
  2. 1
      src/vrend_renderer.h

@ -6221,7 +6221,6 @@ void vrend_renderer_resource_destroy(struct vrend_resource *res)
if (res->tbo_tex_id)
glDeleteTextures(1, &res->tbo_tex_id);
break;
case VREND_RESOURCE_STORAGE_SYSTEM:
case VREND_RESOURCE_STORAGE_IOVEC:
free(res->ptr);
break;
@ -6489,10 +6488,6 @@ static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx,
return 0;
}
if (res->storage == VREND_RESOURCE_STORAGE_SYSTEM) {
vrend_read_from_iovec(iov, num_iovs, info->offset, res->ptr + info->box->x, info->box->width);
return 0;
}
if (res->storage == VREND_RESOURCE_STORAGE_BUFFER) {
struct virgl_sub_upload_data d;
d.box = info->box;
@ -7018,12 +7013,6 @@ static int vrend_renderer_transfer_send_iov(struct vrend_resource *res,
return 0;
}
if (res->storage == VREND_RESOURCE_STORAGE_SYSTEM) {
uint32_t send_size = info->box->width * util_format_get_blocksize(res->base.format);
vrend_write_to_iovec(iov, num_iovs, info->offset, res->ptr + info->box->x, send_size);
return 0;
}
if (res->storage == VREND_RESOURCE_STORAGE_BUFFER) {
uint32_t send_size = info->box->width * util_format_get_blocksize(res->base.format);
void *data;

@ -52,7 +52,6 @@ struct vrend_context;
enum vrend_resource_storage_type {
VREND_RESOURCE_STORAGE_TEXTURE,
VREND_RESOURCE_STORAGE_BUFFER,
VREND_RESOURCE_STORAGE_SYSTEM,
VREND_RESOURCE_STORAGE_IOVEC,
};

Loading…
Cancel
Save