diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-14 17:01:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-14 17:01:13 +0100 |
commit | deacab87e4ba7fe09f0f16568dc2848949f2707a (patch) | |
tree | 819cb206b253eb220047c9375b2cedb1528a916e | |
parent | 5369408d596a0611d4f76333dac2e1c93e63e8b6 (diff) |
sna/dri: flip->next_front.bo is owned by the DRI drawable not by the flip
Be careful not to delete the reference we presume we hold as it is
borrowed from the DRI drawable.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index d6cc2aa4..b1fba200 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -941,9 +941,6 @@ sna_dri_frame_event_info_free(struct sna *sna, if (info->old_front.bo) kgem_bo_destroy(&sna->kgem, info->old_front.bo); - if (info->next_front.bo) - kgem_bo_destroy(&sna->kgem, info->next_front.bo); - if (info->cache.bo) kgem_bo_destroy(&sna->kgem, info->cache.bo); @@ -1431,7 +1428,6 @@ static void sna_dri_flip_event(struct sna *sna, flip->cache = flip->old_front; flip->old_front = flip->next_front; - flip->next_front.bo = NULL; flip->count = sna_page_flip(sna, get_private(flip->front)->bo, @@ -1457,8 +1453,6 @@ static void sna_dri_flip_event(struct sna *sna, sna->dri.flip_pending = flip; } else { finish_async_flip: - flip->next_front.bo = NULL; - DBG(("%s: async flip completed\n", __FUNCTION__)); sna_dri_frame_event_info_free(sna, draw, flip); } |