Commit e0511968 authored by Matthieu Herrb's avatar Matthieu Herrb
Browse files

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: default avatarMatthieu Herrb <>
parent 5eba006e
Pipeline #446158 passed with stages
in 2 minutes and 9 seconds
......@@ -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)
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,
pScreen->SourceValidate = NULL;
pScreen->SourceValidate = radeonSourceValidate;
src, NULL, dst,
extents.x1, extents.y1, 0, 0, extents.x1,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment