summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-13 11:30:07 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-13 14:13:55 +0000
commitb266ae6f6f8fb4c494ece532ae4621055e66beb2 (patch)
treef9748513f8acf39f3451f9e2106070a86575521a /src/sna/sna_render_inline.h
parenta2d82161436e489f23637d793c737bc6950a62b8 (diff)
sna: Relax limitation on not mapping GPU bo with shadow pointers
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index 2feb7ca5..a3297073 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -71,7 +71,7 @@ is_gpu(DrawablePtr drawable)
{
struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
- if (priv == NULL || priv->clear)
+ if (priv == NULL || priv->clear || priv->cpu)
return false;
if (priv->cpu_damage == NULL)
@@ -97,7 +97,7 @@ too_small(struct sna_pixmap *priv)
if (priv->cpu_bo && kgem_bo_is_busy(priv->cpu_bo))
return false;
- return (priv->create & KGEM_CAN_CREATE_GPU) == 0;
+ return priv->create & KGEM_CAN_CREATE_SMALL;
}
static inline bool