xf86-video-ati: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 2 19:52:32 UTC 2022


 src/radeon_kms.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 7a6a34af026f0bef8080b91baf97a729380bca01
Author: Matthieu Herrb <matthieu.herrb at laas.fr>
Date:   Sun Nov 14 17:38:24 2021 +0100

    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 <matthieu.herrb at laas.fr>

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,


More information about the xorg-commit mailing list