diff options
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index de4de5c8..6ae43102 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -578,35 +578,6 @@ static inline uint32_t pixmap_size(PixmapPtr pixmap) pixmap->drawable.width * pixmap->drawable.bitsPerPixel/8; } -static inline struct kgem_bo *pixmap_vmap(struct kgem *kgem, PixmapPtr pixmap) -{ - struct sna_pixmap *priv; - - if (!kgem->has_vmap) - return NULL; - - if (unlikely(kgem->wedged)) - return NULL; - - priv = sna_pixmap_attach(pixmap); - if (priv == NULL) - return NULL; - - if (priv->cpu_bo == NULL) { - priv->cpu_bo = kgem_create_map(kgem, - pixmap->devPrivate.ptr, - pixmap_size(pixmap), - 0); - if (priv->cpu_bo) { - priv->cpu_bo->pitch = pixmap->devKind; - if (pixmap->usage_hint == CREATE_PIXMAP_USAGE_SCRATCH_HEADER) - priv->cpu_bo->sync = true; - } - } - - return priv->cpu_bo; -} - Bool sna_accel_pre_init(struct sna *sna); Bool sna_accel_init(ScreenPtr sreen, struct sna *sna); void sna_accel_block_handler(struct sna *sna); |