summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-07 14:12:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-08 21:34:21 +0100
commit975a566bed72ddc79853b329307ed72a82df24b0 (patch)
tree8778751043b4354a84722d9379a4308923a9e8f8 /src/sna/sna_driver.c
parent0da1c98f660269806408af5fd08c1ab5e538082e (diff)
sna/dri: Replace the DRI2 drawable type with a devPrivate
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index d12c2b0e..e242b2fe 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -82,6 +82,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
static DevPrivateKeyRec sna_private_index;
static DevPrivateKeyRec sna_pixmap_index;
+static DevPrivateKeyRec sna_dri_index;
static DevPrivateKeyRec sna_gc_index;
static DevPrivateKeyRec sna_glyph_key;
static DevPrivateKeyRec sna_window_key;
@@ -810,6 +811,10 @@ sna_register_all_privates(void)
return FALSE;
assert(sna_pixmap_index.offset == sizeof(void*));
+ if (!dixRegisterPrivateKey(&sna_dri_index, PRIVATE_PIXMAP, 0))
+ return FALSE;
+ assert(sna_dri_index.offset == 2*sizeof(void*));
+
if (!dixRegisterPrivateKey(&sna_gc_index, PRIVATE_GC,
sizeof(FbGCPrivate)))
return FALSE;