diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-22 17:00:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-22 17:12:24 +0000 |
commit | f6392048e3e761b35644268ef161045524cfa369 (patch) | |
tree | d8d0507277c4c3207f6bdb58906aade0b5df20ad /src/sna/sna_render_inline.h | |
parent | 4e86da64be947fe4b8b5f285d26d200827847a8c (diff) |
sna/blt: Avoid clobbering the composite state if we fail to setup the BLT
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index 2805a017..6c8f66ab 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -89,6 +89,13 @@ is_cpu(DrawablePtr drawable) } 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(DrawablePtr drawable) { struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable); |