summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-10 14:25:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-10 14:39:10 +0100
commitf19195f7ea317f5601543724c725c4b63fdc3f60 (patch)
tree6eaf1d87316f3072291d8c72f38634f4653f75ab /src
parentc16b2a125929c9027b62c07d47e9602553153eef (diff)
sna: Fix arguments when flipping transformed TearFree outputs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index ae8658f7..e014b27c 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6065,7 +6065,7 @@ void sna_mode_redisplay(struct sna *sna)
if (arg.fb_id == 0)
goto disable1;
- arg.user_data = (uintptr_t)crtc;
+ arg.user_data = (uintptr_t)sna_crtc;
arg.flags = DRM_MODE_PAGE_FLIP_EVENT;
arg.reserved = 0;
@@ -6090,6 +6090,8 @@ disable1:
sna_crtc_disable(crtc);
}
+ kgem_bo_destroy(&sna->kgem, bo);
+ sna_crtc->shadow_bo = NULL;
continue;
}
sna->mode.flip_active++;
@@ -6099,7 +6101,7 @@ disable1:
sna_crtc->flip_bo = bo;
sna_crtc->flip_bo->active_scanout++;
- sna_crtc->shadow_bo = sna_crtc->bo;
+ sna_crtc->shadow_bo = kgem_bo_reference(sna_crtc->bo);
} else {
sna_crtc_redisplay(crtc, &damage);
kgem_scanout_flush(&sna->kgem, sna_crtc->bo);