diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-03 20:43:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-04 08:49:59 +0100 |
commit | df68723baae71498de95924c72d4f23fa7fc7fdf (patch) | |
tree | ff2c26b526c490f3bb611e28f7a447079a7a0fa8 /src/sna/fb | |
parent | e3ad18036b4dca29744ecfa4694006f01dd3fd18 (diff) |
sna: Port prime interfacing
Preliminary prime support.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/fb')
-rw-r--r-- | src/sna/fb/fb.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/sna/fb/fb.h b/src/sna/fb/fb.h index 3339236e..215aec99 100644 --- a/src/sna/fb/fb.h +++ b/src/sna/fb/fb.h @@ -28,15 +28,15 @@ #include "config.h" #endif -#include <stdbool.h> -#include <pixman.h> - #include <xorg-server.h> #include <servermd.h> #include <gcstruct.h> #include <colormap.h> #include <windowstr.h> +#include <stdbool.h> +#include <pixman.h> + #if HAS_DEBUG_FULL #define DBG(x) ErrorF x #else @@ -288,13 +288,17 @@ typedef struct { unsigned char bpp; /* current drawable bpp */ } FbGCPrivate, *FbGCPrivPtr; +extern DevPrivateKeyRec sna_gc_key; +extern DevPrivateKeyRec sna_window_key; + static inline FbGCPrivate *fb_gc(GCPtr gc) { - return (FbGCPrivate *)gc->devPrivates; + return dixGetPrivateAddr(&gc->devPrivates, &sna_gc_key); } + static inline PixmapPtr fbGetWindowPixmap(WindowPtr window) { - return *(void **)window->devPrivates; + return *(PixmapPtr *)dixGetPrivateAddr(&window->devPrivates, &sna_window_key); } #ifdef ROOTLESS |