diff options
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r-- | glamor/glamor.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index b70759b65..cf4a76a7f 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -40,6 +40,19 @@ DevPrivateKeyRec glamor_screen_private_key; DevPrivateKeyRec glamor_pixmap_private_key; DevPrivateKeyRec glamor_gc_private_key; +glamor_screen_private * +glamor_get_screen_private(ScreenPtr screen) +{ + return (glamor_screen_private *) + dixLookupPrivate(&screen->devPrivates, &glamor_screen_private_key); +} + +void +glamor_set_screen_private(ScreenPtr screen, glamor_screen_private *priv) +{ + dixSetPrivate(&screen->devPrivates, &glamor_screen_private_key, priv); +} + /** * glamor_get_drawable_pixmap() returns a backing pixmap for a given drawable. * |