From 77afe8491ed7038a8399c01f10d8f062a7239225 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 22 Jan 2010 20:48:54 +0000 Subject: 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. --- src/drm/cairo-drm-radeon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/drm/cairo-drm-radeon.c') 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 @@ -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; } -- cgit v1.2.3