summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-17 17:01:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-17 17:14:06 +0100
commit7905ddae1dbc8805d0fadbd6d21c7a5df7e715fc (patch)
treeab0662040c3b2467a7b58e838908eab072b2291b /src/sna/sna_render_inline.h
parent5a675b61f27273f7ef344d4056dbba1f8cd97737 (diff)
sna: Further refine choice of placement when uploading source data.
The goal is cheaply spot a simple copy operation that can be performed on the CPU without having to load both parties onto the 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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index 15512fd5..8a5a4057 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -123,11 +123,7 @@ static inline Bool
unattached(DrawablePtr drawable)
{
struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
-
- if (priv == NULL || DAMAGE_IS_ALL(priv->cpu_damage))
- return true;
-
- return priv->gpu_bo == NULL && priv->cpu_bo == NULL;
+ return priv == NULL || (priv->gpu_damage == NULL && priv->cpu_damage);
}
static inline Bool