diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 10:56:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 10:56:18 +0100 |
commit | 587499bbf55b7eb0e1848822a792d535a8a3db1b (patch) | |
tree | c0fbedd40e20d2b102ca4df8ae1aee5cea1db4e1 /src/sna/sna_video.c | |
parent | 913adacc5400f94bc754f22375447e6f90ccd510 (diff) |
sna/video: Use the scanout flag and FB id for sprite framebuffers
So that we can use the same teardown path as normal scanouts.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r-- | src/sna/sna_video.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c index b8690ece..e7b335a9 100644 --- a/src/sna/sna_video.c +++ b/src/sna/sna_video.c @@ -80,17 +80,12 @@ void sna_video_free_buffers(struct sna *sna, struct sna_video *video) for (i = 0; i < ARRAY_SIZE(video->old_buf); i++) { if (video->old_buf[i]) { - if (video->old_buf[i]->unique_id) - drmModeRmFB(sna->kgem.fd, - video->old_buf[i]->unique_id); kgem_bo_destroy(&sna->kgem, video->old_buf[i]); video->old_buf[i] = NULL; } } if (video->buf) { - if (video->buf->unique_id) - drmModeRmFB(sna->kgem.fd, video->buf->unique_id); kgem_bo_destroy(&sna->kgem, video->buf); video->buf = NULL; } |