summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-24 15:17:06 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-24 21:31:06 +0000
commite764a52ee8f0c552e218b3110318be9ba06634ae (patch)
tree8fa1214efe36446439441cad2863b27c657fc3a0 /src/sna/sna.h
parentf9f8535db6a9e3affba9ba2c2a9314dfe12ab270 (diff)
sna: Encourage large operations to be migrated to the GPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index b99d0fd4..79aa08fe 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -177,7 +177,7 @@ static inline PixmapPtr get_drawable_pixmap(DrawablePtr drawable)
return get_window_pixmap((WindowPtr)drawable);
}
-static inline struct sna_pixmap *sna_pixmap(PixmapPtr pixmap)
+constant static inline struct sna_pixmap *sna_pixmap(PixmapPtr pixmap)
{
return ((void **)pixmap->devPrivates)[1];
}
@@ -322,25 +322,25 @@ extern PixmapPtr sna_set_screen_pixmap(struct sna *sna, PixmapPtr pixmap);
void sna_mode_delete_fb(struct sna *sna, uint32_t fb);
-static inline struct sna *
+constant static inline struct sna *
to_sna(ScrnInfoPtr scrn)
{
return (struct sna *)(scrn->driverPrivate);
}
-static inline struct sna *
+constant static inline struct sna *
to_sna_from_screen(ScreenPtr screen)
{
return to_sna(xf86Screens[screen->myNum]);
}
-static inline struct sna *
+constant static inline struct sna *
to_sna_from_pixmap(PixmapPtr pixmap)
{
return *(void **)pixmap->devPrivates;
}
-static inline struct sna *
+constant static inline struct sna *
to_sna_from_drawable(DrawablePtr drawable)
{
return to_sna_from_screen(drawable->pScreen);