summaryrefslogtreecommitdiff
path: root/src/drm/cairo-drm-radeon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drm/cairo-drm-radeon.c')
-rw-r--r--src/drm/cairo-drm-radeon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drm/cairo-drm-radeon.c b/src/drm/cairo-drm-radeon.c
index e435d705..a9683083 100644
--- a/src/drm/cairo-drm-radeon.c
+++ b/src/drm/cairo-drm-radeon.c
@@ -32,6 +32,7 @@
#include "cairo-drm-private.h"
#include "cairo-drm-radeon-private.h"
#include "cairo-drm-ioctl-private.h"
+
#include "cairo-error-private.h"
#include <sys/ioctl.h>
@@ -371,7 +372,7 @@ radeon_bo_create_for_name (radeon_device_t *device,
return &bo->base;
}
-void
+static void
radeon_bo_release (void *_dev, void *_bo)
{
radeon_device_t *device = _dev;
@@ -431,6 +432,8 @@ radeon_device_init (radeon_device_t *device, int fd)
{
_radeon_device_init_bo_cache (device);
+ device->base.bo.release = radeon_bo_release;
+
return CAIRO_STATUS_SUCCESS;
}