diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-17 17:16:07 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-17 21:26:35 +0000 |
commit | 25c353503a25d20e7db5acdc63d83564804efdf4 (patch) | |
tree | f1e83e626ac0e57eae628e2c33dbb5b047f10fbf /src/sna/sna_render_inline.h | |
parent | d20d167a753d8e4fe581950e1bc49f29e0ec9f1f (diff) |
sna: Simplify write domain tracking
Replace the growing bitfield with an enum marking where it was last
used.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index 497c0fd4..daa8f6fe 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -77,7 +77,7 @@ static inline Bool is_busy_cpu(DrawablePtr drawable) { struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable); - return priv && priv->cpu_bo && priv->cpu_bo->gpu; + return priv && priv->cpu_bo && kgem_bo_is_busy(priv->cpu_bo); } static inline Bool |