mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
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@laas.fr>
This commit is contained in:
committed by
Alan Coopersmith
parent
983a779b7a
commit
7a6a34af02
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user