From: Michel Dänzer <[email protected]> This ensures the scanout pixmaps used for Option "TearFree" and Option "ShadowPrimary" have been initialized when their initial mode is set.
Signed-off-by: Michel Dänzer <[email protected]> --- src/drmmode_display.c | 2 ++ src/radeon.h | 4 ++++ src/radeon_kms.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 064a64c..8caad70 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -718,6 +718,8 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, drmmode_crtc->scanout_id = 0; fb_id = drmmode_crtc->scanout[0].fb_id; x = y = 0; + + radeon_scanout_update_handler(pScrn, 0, 0, crtc); } } ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, diff --git a/src/radeon.h b/src/radeon.h index 962a68d..8220da7 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -593,6 +593,10 @@ extern Bool RADEONGetPixmapOffsetPitch(PixmapPtr pPix, /* radeon_dri3.c */ Bool radeon_dri3_screen_init(ScreenPtr screen); +/* radeon_kms.c */ +void radeon_scanout_update_handler(ScrnInfoPtr scrn, uint32_t frame, + uint64_t usec, void *event_data); + /* radeon_present.c */ Bool radeon_present_screen_init(ScreenPtr screen); diff --git a/src/radeon_kms.c b/src/radeon_kms.c index eda3f33..082c5b6 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -385,7 +385,7 @@ radeon_scanout_update_abort(ScrnInfoPtr scrn, void *event_data) drmmode_crtc->scanout_update_pending = FALSE; } -static void +void radeon_scanout_update_handler(ScrnInfoPtr scrn, uint32_t frame, uint64_t usec, void *event_data) { -- 2.1.4 _______________________________________________ xorg-driver-ati mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-driver-ati
