diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-14 12:47:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-14 13:48:05 +0000 |
commit | 0d3ba44e448c152a570cc469d289ab057fa7be5c (patch) | |
tree | 24c783a5cec816decdbdd4a7c4c14bbde026c726 /src/sna/sna_render_inline.h | |
parent | d867fd01cb0060342102a79600daf43e3dc44a07 (diff) |
sna/gen2+: Experiment with not forcing migration to GPU after CPU rasterisation
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index 2468b891..e31db156 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -233,6 +233,15 @@ inline static bool dst_use_gpu(PixmapPtr pixmap) return priv->cpu_bo && kgem_bo_is_busy(priv->cpu_bo); } +inline static bool dst_use_cpu(PixmapPtr pixmap) +{ + struct sna_pixmap *priv = sna_pixmap(pixmap); + if (priv == NULL) + return true; + + return priv->cpu_damage && priv->cpu; +} + inline static bool dst_is_cpu(PixmapPtr pixmap) { struct sna_pixmap *priv = sna_pixmap(pixmap); |