Gert Wollny
e96a5e8594
vrend_object.c: Fix warnings
...
vrend_object.c: In function »vrend_object_insert_nofree«:
vrend_object.c:128:49: warning: unused parameter »length« [-Wunused-
parameter]
void *data, uint32_t length, uint32_t
handle, enum virgl_object_type type, bool free_data)
^~~~~~
vrend_object.c: In function »vrend_object_remove«:
vrend_object.c:152:61: warning: unused parameter »type« [-Wunused-
parameter]
uint32_t handle, enum virgl_object_type type)
^~~~
vrend_object.c: In function »vrend_resource_lookup«:
vrend_object.c:195:55: warning: unused parameter »ctx_id« [-Wunused-
parameter]
void *vrend_resource_lookup(uint32_t handle, uint32_t ctx_id)
v2: Use mesa style UNUSED annotation for unused parameters
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
6 years ago
Marc-André Lureau
a342dc9149
renderer: fix leak in hashtable on replace
...
Some american fuzzy lop tests managed to replace resources, however the
old values got leaked (I am not sure if this should be allowed)
In all cases, introduce a destroy callback to the hashtable, used when a
value is removed, replaced or the table is cleared. This simplifies a
bit resource management and help avoid potential errors by using simply
refcounts.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
1146468715
vrend: do not accept to insert resource 0
...
These leads to later crashes
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
9 years ago
Marc-André Lureau
75f71b6f73
vrend: remove unused argument
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
9 years ago
Dave Airlie
7e85c2f114
renderer: CLEANUP: whitespace and reindent
...
this uses the mesa coding style, pray I never have to do
this again.
strip all trailing whitespace as much as possible
10 years ago
Dave Airlie
aef2ec2e78
renderer: cleanup dangling resources.
...
if a context goes away we should cleanup any resources
left in its resource hash table.
10 years ago
Dave Airlie
03e3116a75
import latest renderer code
10 years ago
Dave Airlie
a3a2c64cd6
initial import of standalone renderer
11 years ago