vrend: remove unused argument

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent a62554cca9
commit 75f71b6f73
  1. 2
      src/vrend_object.c
  2. 2
      src/vrend_object.h
  3. 2
      src/vrend_renderer.c

@ -185,7 +185,7 @@ void *vrend_object_lookup(struct util_hash_table *handle_hash,
return obj->data;
}
int vrend_resource_insert(void *data, uint32_t length, uint32_t handle)
int vrend_resource_insert(void *data, uint32_t handle)
{
struct vrend_object *obj = CALLOC_STRUCT(vrend_object);

@ -42,7 +42,7 @@ uint32_t vrend_object_insert_nofree(struct util_hash_table *handle_hash,
enum virgl_object_type type,
bool free_data);
/* resources are global */
int vrend_resource_insert(void *data, uint32_t length, uint32_t handle);
int vrend_resource_insert(void *data, uint32_t handle);
void vrend_resource_remove(uint32_t handle);
void *vrend_resource_lookup(uint32_t handle, uint32_t ctx_id);

@ -4115,7 +4115,7 @@ int vrend_renderer_resource_create(struct vrend_renderer_resource_create_args *a
gt->cur_swizzle_r = gt->cur_swizzle_g = gt->cur_swizzle_b = gt->cur_swizzle_a = -1;
}
ret = vrend_resource_insert(gr, sizeof(*gr), args->handle);
ret = vrend_resource_insert(gr, args->handle);
if (ret == 0) {
vrend_renderer_resource_destroy(gr, true);
return ENOMEM;

Loading…
Cancel
Save