Commit 75f71b6f authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

vrend: remove unused argument

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@gmail.com>
parent a62554cc
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment