~ubuntu-branches/ubuntu/utopic/xserver-xorg-video-intel/utopic

« back to all changes in this revision

Viewing changes to src/sna/sna_video.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-09-12 07:43:59 UTC
  • mfrom: (1.4.22)
  • Revision ID: package-import@ubuntu.com-20120912074359-i3h8ol6hoghbemoq
Tags: 2:2.20.7-0ubuntu1
Merge from unreleased debian git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
        for (i = 0; i < ARRAY_SIZE(video->old_buf); i++) {
82
82
                if (video->old_buf[i]) {
83
 
                        if (video->old_buf[i]->unique_id)
84
 
                                drmModeRmFB(sna->kgem.fd,
85
 
                                                video->old_buf[i]->unique_id);
86
83
                        kgem_bo_destroy(&sna->kgem, video->old_buf[i]);
87
84
                        video->old_buf[i] = NULL;
88
85
                }
89
86
        }
90
87
 
91
88
        if (video->buf) {
92
 
                if (video->buf->unique_id)
93
 
                        drmModeRmFB(sna->kgem.fd, video->buf->unique_id);
94
89
                kgem_bo_destroy(&sna->kgem, video->buf);
95
90
                video->buf = NULL;
96
91
        }