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 <keithp@keithp.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
90d326fcc6
commit
c6ab135667
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user