From 7a6a34af026f0bef8080b91baf97a729380bca01 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 14 Nov 2021 17:38:24 +0100 Subject: Don't set SourceValidate pointer to NULL inspired from similar code in amdgpu, fixes a crash when xrandr(1) is invoqued with X server 21.1.1 Signed-off-by: Matthieu Herrb --- src/radeon_kms.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 62962d61..51b00dd9 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -931,6 +931,13 @@ radeon_dirty_update(ScrnInfoPtr scrn) } } +static void +radeonSourceValidate(DrawablePtr draw, int x, int y, int w, int h, + unsigned int subWindowMode) +{ +} + + Bool radeon_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id, @@ -993,7 +1000,7 @@ radeon_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id, SetPicturePictFilter(src, xf86_crtc->filter, xf86_crtc->params, xf86_crtc->nparams); - pScreen->SourceValidate = NULL; + pScreen->SourceValidate = radeonSourceValidate; CompositePicture(PictOpSrc, src, NULL, dst, extents.x1, extents.y1, 0, 0, extents.x1, -- cgit v1.2.3