summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2016-01-18 17:24:32 +0100
committerDave Airlie <airlied@gmail.com>2016-01-29 14:01:27 +1000
commit75f71b6f73ac6451bc8433392706846d13fca688 (patch)
tree01e6099a5914d106ae2ce4bc40fa4d4f44f60905
parenta62554cca967ebb9f263df7b8bca4935facdd701 (diff)
vrend: remove unused argument
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
-rw-r--r--src/vrend_object.c2
-rw-r--r--src/vrend_object.h2
-rw-r--r--src/vrend_renderer.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/vrend_object.c b/src/vrend_object.c
index 92418eb..72ffea6 100644
--- a/src/vrend_object.c
+++ b/src/vrend_object.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);
diff --git a/src/vrend_object.h b/src/vrend_object.h
index e2b5e30..a72b9ee 100644
--- a/src/vrend_object.h
+++ b/src/vrend_object.h
@@ -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);
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 04582ea..e234926 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -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;