sna/video: Mark the bo as clean after a setplane

The kernel will flush it, so we can treat it as clean after a successful
setplane.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-11-10 15:38:18 +00:00
parent 65b680e6cf
commit dad64e9f76
1 changed files with 1 additions and 2 deletions

View File

@ -370,7 +370,7 @@ sna_video_sprite_show(struct sna *sna,
return false;
}
frame->bo->domain = DOMAIN_NONE;
__kgem_bo_clear_dirty(frame->bo);
if (video->bo[pipe])
kgem_bo_destroy(&sna->kgem, video->bo[pipe]);
@ -580,7 +580,6 @@ off:
ret = BadAlloc;
}
frame.bo->domain = DOMAIN_NONE;
if (cache_bo)
sna_video_buffer_fini(video);
else