xserver/hw/xfree86
Alex Goins 495bf63a7d randr: Re-add removed NULL checks to xf86RandR12.c
Commit 1e3f9ea1 removed some NULL checks from xf86RandR12.c, on the premise that
they can't be reached unless RandR has already been initialized. For threesuch
calls, that's not true:

xf86Crtc.c::xf86CrtcScreenInit():

    if (c == config->num_crtc) {
        xf86RandR12SetRotations(screen, RR_Rotate_0 | RR_Rotate_90 |
                                RR_Rotate_180 | RR_Rotate_270 |
                                RR_Reflect_X | RR_Reflect_Y);
        xf86RandR12SetTransformSupport(screen, TRUE);
    }
    else {
        xf86RandR12SetRotations(screen, RR_Rotate_0);
        xf86RandR12SetTransformSupport(screen, FALSE);
    }

xf86Crtc.c::xf86CrtcCloseScreen():

    xf86RandR12CloseScreen(screen);

This change adds checks back to xf86RandR12Set{Rotations,TransformSupport}() and
xf86RandR12CloseScreen(), checking that xf86RandR12KeyRec has been registered.
Without this, X will hit an assert that causes it to abort.

Signed-off-by: Alex Goins <agoins@nvidia.com>
2020-07-21 15:53:53 +00:00
..
common xfree86: Bump ABI_VIDEODRV_VERSION to 25.2 2020-07-13 07:06:07 +10:00
ddc Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
dixmods glx: unbreak on Unix without /usr/include/drm 2020-05-27 07:15:07 +00:00
doc Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
dri Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
dri2 xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
drivers xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
exa meson: Install man pages 2018-03-27 10:28:33 -04:00
fbdevhw Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
glamor_egl glamor: Make Xv extension initialize at depth 30. 2018-02-27 10:18:06 -05:00
i2c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
int10 Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
loader loader: strdup const string assigned to local variable name 2020-01-28 20:35:06 +00:00
man Update URL's in man pages 2020-05-10 17:46:33 -07:00
modes randr: Re-add removed NULL checks to xf86RandR12.c 2020-07-21 15:53:53 +00:00
os-support Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
parser Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
ramdac xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
shadowfb meson: Fix linkage of loadable modules for PE/COFF 2017-10-12 15:22:04 -04:00
utils Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
vgahw Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
x86emu Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xkb Move statically linked xorgxkb files from dixmods to a separate directory 2017-06-27 12:42:06 -04:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Makefile.am xfree86: Merge vbe into int10 2019-10-02 10:03:26 -04:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build xfree86: Merge vbe into int10 2019-10-02 10:03:26 -04:00
sdksyms.sh include: Remove now-empty site.h 2019-10-30 16:17:04 +00:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00