xf86-video-intel: src/sna/sna_display.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Oct 7 13:13:48 PDT 2014
src/sna/sna_display.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 57c48e4973ac0dad09744eaa82315a5f023094e7
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Oct 7 21:08:52 2014 +0100
sna: Fix the TearFree flip handler for the change in argument order
From the last commit c481254c17316e6c8299705fd0a218484dd369fe,
we need to pass along the private pointer as the flip data as we no
longer pass it down from the caller.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 01ba234..48cdb25 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6826,7 +6826,11 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region, struct kgem_bo *bo)
sna_crtc_redisplay__fallback(crtc, region, bo);
}
-#define shadow_flip_handler (sna_flip_handler_t)sna_mode_redisplay
+static void shadow_flip_handler(struct drm_event_vblank *e,
+ void *data)
+{
+ sna_mode_redisplay(data);
+}
void sna_shadow_set_crtc(struct sna *sna,
xf86CrtcPtr crtc,
@@ -7060,6 +7064,7 @@ disable1:
assert(sna_crtc->flip_bo == NULL);
sna_crtc->flip_handler = shadow_flip_handler;
+ sna_crtc->flip_data = sna;
sna_crtc->flip_bo = bo;
sna_crtc->flip_bo->active_scanout++;
sna_crtc->flip_serial = sna_crtc->mode_serial;
@@ -7196,6 +7201,7 @@ fixup_flip:
assert(crtc->flip_bo == NULL);
crtc->flip_handler = shadow_flip_handler;
+ crtc->flip_data = sna;
crtc->flip_bo = kgem_bo_reference(flip_bo);
crtc->flip_bo->active_scanout++;
crtc->flip_serial = crtc->mode_serial;
More information about the xorg-commit
mailing list