summaryrefslogtreecommitdiff
path: root/src/drm/cairo-drm-radeon.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-22 20:48:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:52 +0000
commit77afe8491ed7038a8399c01f10d8f062a7239225 (patch)
tree0af0013ef61936fffb9e4a69605856866da5b677 /src/drm/cairo-drm-radeon.c
parentb9407af6a4bc792c1bcb52c90aa8a618627bb618 (diff)
drm: Add backends for i915 and i965.
As proof-of-principle add the nearly working demonstrations of using DRM to render directly with the GPU bypassing both RENDER and GL for performance whilst preserving high quality rendering. The basis behind developing these chip specific backends is that this is the idealised interface that we desire for this chips, and so a target for cairo-gl as we continue to develop both it and our GL stack. Note that this backends do not yet fully pass the test suite, so only use if you are brave and willing to help develop them further.
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;
}