From c6ab13566798c7adff23a609575a7ac2d1ce2df6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 29 Oct 2014 20:44:31 -0700 Subject: glamor: Remove ddx fallback check functions With no DDX-based fallback support, we can remove these functions as they are no longer called. Signed-off-by: Keith Packard Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt --- glamor/glamor_utils.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'glamor') diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index c15d17ca3..795425770 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -939,40 +939,6 @@ glamor_pict_format_is_compatible(PicturePtr picture) } } -/* return TRUE if we can access this pixmap at DDX driver. */ -inline static Bool -glamor_ddx_fallback_check_pixmap(DrawablePtr drawable) -{ - PixmapPtr pixmap = glamor_get_drawable_pixmap(drawable); - glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); - - return (!pixmap_priv - || (pixmap_priv->type == GLAMOR_TEXTURE_DRM - || pixmap_priv->type == GLAMOR_MEMORY - || pixmap_priv->type == GLAMOR_DRM_ONLY)); -} - -inline static Bool -glamor_ddx_fallback_check_gc(GCPtr gc) -{ - PixmapPtr pixmap; - - if (!gc) - return TRUE; - switch (gc->fillStyle) { - case FillStippled: - case FillOpaqueStippled: - pixmap = gc->stipple; - break; - case FillTiled: - pixmap = gc->tile.pixmap; - break; - default: - pixmap = NULL; - } - return (!pixmap || glamor_ddx_fallback_check_pixmap(&pixmap->drawable)); -} - inline static Bool glamor_is_large_pixmap(PixmapPtr pixmap) { -- cgit v1.2.3