diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2021-11-14 17:38:24 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-30 17:37:48 +0000 |
commit | 7a6a34af026f0bef8080b91baf97a729380bca01 (patch) | |
tree | 4c1bbcf8bc9a89321e4db2fecd3ae0497ae5830e /src | |
parent | 983a779b7a5b2153d995727a0ed3da09732e15d5 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_kms.c | 9 |
1 files changed, 8 insertions, 1 deletions
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, |