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:
parent
65b680e6cf
commit
dad64e9f76
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue