summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-20 15:33:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-20 16:06:13 +0100
commit01ebdb4d7a8bb751167153554f9122d996e4ea91 (patch)
treee8aad71fc2ff239996452845be90d6f553b13969 /src/sna/sna_render_inline.h
parent410316d20299b9ed3447d1d897f904af786ed097 (diff)
sna: Remove confusing is_cpu()
The only real user now has its own heuristics, so convert the remaining users over to !is_gpu(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render_inline.h')
-rw-r--r--src/sna/sna_render_inline.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index 3849a880..64f8a46f 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -88,32 +88,6 @@ is_gpu(DrawablePtr drawable)
}
static inline bool
-is_cpu(DrawablePtr drawable)
-{
- struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
- if (priv == NULL || priv->clear)
- return true;
-
- if (priv->cpu_bo && kgem_bo_is_busy(priv->cpu_bo))
- return false;
-
- if (DAMAGE_IS_ALL(priv->cpu_damage))
- return true;
-
- if (priv->gpu_damage && kgem_bo_is_busy(priv->gpu_bo))
- return false;
-
- return true;
-}
-
-static inline bool
-is_dirty(DrawablePtr drawable)
-{
- struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
- return priv == NULL || kgem_bo_is_dirty(priv->gpu_bo);
-}
-
-static inline bool
too_small(struct sna_pixmap *priv)
{
assert(priv);