diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-23 19:11:43 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-23 22:11:19 +0000 |
commit | 9580ae8490a4119dac2fefe0085326db350209d7 (patch) | |
tree | 723adc47c6e9165beccddf30fc4b83c82394f415 /src/sna/gen6_render.c | |
parent | 98f15fc61361b7f1e01969f8d4237c13e93e3fb0 (diff) |
sna: Pass usage-hint to move-to-gpu
When simply creating a source GPU bo it is preferrable not to mark it as
all-damaged.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 985bb90b..2cd4173b 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1814,7 +1814,7 @@ gen6_render_video(struct sna *sna, REGION_EXTENTS(NULL, dstRegion)->x2, REGION_EXTENTS(NULL, dstRegion)->y2)); - priv = sna_pixmap_force_to_gpu(pixmap); + priv = sna_pixmap_force_to_gpu(pixmap, MOVE_READ | MOVE_WRITE); if (priv == NULL) return FALSE; @@ -2060,7 +2060,7 @@ gen6_composite_set_target(struct sna *sna, op->damage = &priv->cpu_damage; } if (op->dst.bo == NULL) { - priv = sna_pixmap_force_to_gpu(op->dst.pixmap); + priv = sna_pixmap_force_to_gpu(op->dst.pixmap, MOVE_READ | MOVE_WRITE); if (priv == NULL) return FALSE; |