summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-10-30 12:33:09 -0400
committerMichel Dänzer <michel@daenzer.net>2019-11-22 17:29:37 +0100
commitfd66f5c0bea2b7c22a47bfd5eb1f22d32d166d9c (patch)
tree54f00623cfb843efb48f79c9727a55a0b7f924ed /src
parentb467d2569a003da05ad222b0dc095bee5eec450a (diff)
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@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_kms.c7
1 files changed, 6 insertions, 1 deletions
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,