diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-11 15:18:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-23 16:18:42 +0100 |
commit | c3f2db4f73e93a3dafe0f52a5f9ca09ca78cc906 (patch) | |
tree | 5cb530cb949e950370c2ff4866c560b1a1075b6f /perf | |
parent | bed2701e1c89095878d549cbca8f22d84f3dda3c (diff) |
[drm] Add an accelerated image surface.
Use the DRM interface to h/w accelerate composition on image surfaces.
The purpose of the backend is simply to explore what such a hardware
interface might look like and what benefits we might expect. The
use case that might justify writing such custom backends are embedded
devices running a drm compositor like wayland - which would, for example,
allow one to write applications that seamlessly integrated accelerated,
dynamic, high quality 2D graphics using Cairo with advanced interaction
(e.g. smooth animations in the UI) driven by a clutter framework...
In this first step we introduce the fundamental wrapping of GEM for intel
and radeon chipsets, and, for comparison, gallium. No acceleration, all
we do is use buffer objects (that is use the kernel memory manager) to
allocate images and simply use the fallback mechanism. This provides a
suitable base to start writing chip specific drivers.
Diffstat (limited to 'perf')
-rw-r--r-- | perf/cairo-perf-trace.c | 3 | ||||
-rw-r--r-- | perf/cairo-perf.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index a9a87468..abe9b1e1 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -114,6 +114,9 @@ target_is_measurable (const cairo_boilerplate_target_t *target) #if CAIRO_HAS_GL_SURFACE case CAIRO_SURFACE_TYPE_GL: #endif +#if CAIRO_HAS_DRM_SURFACE + case CAIRO_SURFACE_TYPE_DRM: +#endif return TRUE; case CAIRO_SURFACE_TYPE_PDF: case CAIRO_SURFACE_TYPE_PS: diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index c06eac0d..f3b5f660 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -98,12 +98,15 @@ target_is_measurable (const cairo_boilerplate_target_t *target) #if CAIRO_VERSION > CAIRO_VERSION_ENCODE(1,1,2) case CAIRO_SURFACE_TYPE_OS2: #endif -#if CAIRO_VERSION > CAIRO_VERSION_ENCODE(1,9,4) +#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,9,4) case CAIRO_SURFACE_TYPE_QT: #endif #if CAIRO_HAS_GL_SURFACE case CAIRO_SURFACE_TYPE_GL: #endif +#if CAIRO_HAS_DRM_SURFACE + case CAIRO_SURFACE_TYPE_DRM: +#endif return TRUE; default: |