summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-17 16:59:05 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-17 17:01:17 +0100
commit540666a0a81c7daedbd47830d0932df5e57ec903 (patch)
treeb8f508b13b4ca20da88c5134493c2b137db7c4d1
parent891bae4aa91e85542dcbe38f6ee92141e3efc801 (diff)
sna/overlay: Move bo out of GTT domain after binding to overlay plane
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_video_overlay.c1
-rw-r--r--src/sna/sna_video_sprite.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c
index b73e9ddf..a1cc4b98 100644
--- a/src/sna/sna_video_overlay.c
+++ b/src/sna/sna_video_overlay.c
@@ -532,6 +532,7 @@ sna_video_overlay_put_image(ScrnInfoPtr scrn,
return BadAlloc;
}
+ frame.bo->domain = DOMAIN_NONE;
sna_video_buffer_fini(sna, video);
/* update cliplist */
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c
index a912590f..e90c18c3 100644
--- a/src/sna/sna_video_sprite.c
+++ b/src/sna/sna_video_sprite.c
@@ -250,6 +250,7 @@ sna_video_sprite_show(struct sna *sna,
0, 0, frame->width << 16, frame->height << 16))
return false;
+ frame->bo->domain = DOMAIN_NONE;
video->plane = plane;
return true;
}