xf86-video-amdgpu: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 22 16:43:26 UTC 2019


 src/amdgpu_kms.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit fd66f5c0bea2b7c22a47bfd5eb1f22d32d166d9c
Author: Adam Jackson <ajax at redhat.com>
Date:   Wed Oct 30 12:33:09 2019 -0400

    kms: Handle changes to SourceValidate call chain in xserver 19
    
    xserver 19 expects the SourceValidate hook to always be filled in with
    something valid. For earlier servers it's harmless to simply fill this
    in with a do-nothing function instead of NULL.
    
    Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 6a60f54..94d1c0b 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -975,6 +975,11 @@ amdgpu_dirty_update(ScrnInfoPtr scrn)
 	}
 }
 
+static void
+amdgpuSourceValidate(DrawablePtr draw, int x, int y, int w, int h,
+		     unsigned int subWindowMode)
+{
+}
 
 Bool
 amdgpu_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id,
@@ -1031,7 +1036,7 @@ amdgpu_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 = amdgpuSourceValidate;
 		CompositePicture(PictOpSrc,
 				 src, NULL, dst,
 				 extents.x1, extents.y1, 0, 0, extents.x1,


More information about the xorg-commit mailing list