Commit Graph

22467 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
d0159bce03 Xext: saver: use REPLY_*() macros for preparing / sending replies
Use the new macros for preparing and sending replies to clients.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
a2baa34c11 Xext: dpms: use REPLY_*() macros for preparing / sending replies
Use the new macros for preparing and sending replies to clients.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
aa697d6e7c include: dix.h: add macros for request handlers and swapping
add some macros for making request handlers easier:

    * REQUEST_HEAD_STRUCT() declares a struct and checks size (assuming
      length field already had been swapped)
    * REQUEST_FIELD_CARD16() swaps a CARD16 (word) if neccessary
    * REQUEST_FIELD_CARD32() swaps a CARD32 (dword) if neccessary

How to use them:

    1. move swapping of lengths field into the SProc*Dispatch() and drop it
       from the individual SProc*()'s
    2. put REQUEST_HEAD_STRUCT() ontop of each Proc*()
    3. add REQUEST_FIELD_*() below, for all fields to be swapped and
       drop their swapping from the SProc*()'s
    4. clean up unnecessary wrappers (SProc*()'s just be just call the
       corresponding Proc*() by now)
    5. let demux SProc just swap length field and call the normal Proc*Dispatch()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
2c96a0a013 Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
Use the new macros to make request struct parsing / field swapping
much easier.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
620f5d1531 WIP Xext: panoramiX: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
Use the new macros to make request struct parsing / field swapping
much easier.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
f319885746 [PR #1526] Xext: shape: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1526
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
f90247594b [PR #1531] Xext: sync: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1531
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
2877d2749e [PR #1532] Xext: vidmode: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1532
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
b7688176ae [PR #1533] Xext: xcmisc: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1533
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
b3ff411462 [PR #1534] Xext: xf86bigfont: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1534
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
b9affb4db9 [PR #1538] Xext: xv: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1538
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
766e5ba8ae [PR #1544] xkb: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1544
2026-01-31 16:57:20 +01:00
Enrico Weigelt, metux IT consult
ad8d73dd52 [PR #1545] dbe: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
PR: https://github.com/X11Libre/xserver/pull/1545
2026-01-31 16:57:19 +01:00
Enrico Weigelt, metux IT consult
3e4bb9a0d9 xfree86: exa: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
eb499ff4d5 xfree86: dri: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
0c3a471c4c xfree86: drivers: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
8ffab59ad2 xfree86: loader: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
f5eb6b6c57 xfree86: dixmods: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
f949ddea88 xfree86: i2c: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
2f2ecad0b5 xfree86: int10: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
e1111ead5c xfree86: modes: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
0111a3cc9e xfree86: ddc: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
73dd3a470f xfree86: common: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
f7e5867927 xfree86: os-support: drop ifdef HAVE_XORG_CONFIG_H
Not really needed, because <xorg-config.h> is always present anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:54:30 +01:00
Enrico Weigelt, metux IT consult
8b8c9b9200 xfree86: move pci_device_is_boot_display to priv header and document it
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:35:40 +01:00
Enrico Weigelt, metux IT consult
705a3a9978 xfree86: drop obsolete xf86PciInfo.h
Nobody's using this file anymore, so no need to keep it any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:34:29 +01:00
Enrico Weigelt, metux IT consult
431082ba9f .github: update xf86-video-v4l to 25.0.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 17:12:24 +01:00
Enrico Weigelt, metux IT consult
05d2b20e20 xfree86: move xf86_platform_device_odev_attributes() into private header
Not used by external drivers, and not part of ABI (just an inline),
so no need to keep it it public SDK header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 12:49:00 +01:00
Enrico Weigelt, metux IT consult
b9c5787ca5 xfree86: ddc: interpret_edid.c: minor whitespace fixes
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 19:00:23 +01:00
Enrico Weigelt, metux IT consult
55d317dd50 xfree86: ddc: move some defines into private header
Those aren't used by any external driver, so no need to keep them public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 17:32:21 +01:00
Enrico Weigelt, metux IT consult
f98d467a0c xfree86: ddc: move remaining struct cea_* to private header
Not needed in public SDK headers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 16:51:11 +01:00
Tautvis
af9afa287a modesetting: pageflip: clear new_front_bo struct in ms_do_pageflip
ms_do_pageflip function temporary creates and destroy drmmode_bo object, but
the structure is stack ( values goes uninitialized). This became problem
because in f4362fc4ec drmmode_bo struct got extra
fields which is checked during drmmode_bo_destroy and causes crash.

Signed-off-by: Tautvis <gtautvis@gmail.com>
2026-01-29 14:35:48 +01:00
Alexander Melnyk
547d13575d xkb: Fix locked/latched indicator desync across multiple keyboards
When a group indicator (or a latched indicator of any kind) is defined,
e.g.:
  indicator "Scroll Lock" { groups = Group2; }
the logical and physical indicator state may desync across multiple
connected keyboards.

This is caused by XkbPushLockedStateToSlaves only pushing locked_mods to
the slave devices. Pushing locked_group (as well as latched groups/mods)
along with locked_mods resolves the issue.

The issue is not observed with API calls because a different code path
is taken (avoiding XkbPushLockedStateToSlaves altogether).

Signed-off-by: Alexander Melnyk <inboxnumberzero@zoho.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2120>
2026-01-29 14:34:16 +01:00
John Studnicka
8fa58d3b51 modesetting: Handle reflected/rotated cursors better
Moved the cursor glyph cropping into a separate function that handles reflections and rotations.

Also, x/y are indexes into the buffer, so they should be clamped to width/height len - 1 for correctness.

Signed-off-by: John Studnicka <contact@zentec.dev>
2026-01-29 14:33:13 +01:00
Enrico Weigelt, metux IT consult
1a9d075b9a xfree86: ddc: move struct cea_vendor_block(_hdmi) to private header
Not used by any external driver, so no need to keep them in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 14:32:40 +01:00
Enrico Weigelt, metux IT consult
5a34d6c738 xfree86: ddc: move struct cea_speaker_block into private header
Not used by any external drivers, so no need to keep it in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 14:08:57 +01:00
Enrico Weigelt, metux IT consult
b6092270e0 xfree86: ddc: move struct cea_data_block into private header
Not used by any external drivers, so no need to keep it in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 13:18:16 +01:00
Enrico Weigelt, metux IT consult
46741a8645 xfree86: ddc: move CVT_SUPPORTED to private header
Not used by any external driver, so no need to keep it in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 10:37:10 +01:00
Enrico Weigelt, metux IT consult
88a58ed15c xfree86: ddc: move sync characteristics macros to print_edid.c
Only used there, so no need to keep them in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 10:36:57 +01:00
Enrico Weigelt, metux IT consult
b584b59f1d xfree86: ddc: move ext tag defines into interpret_edid.c
Not used anywhere outside, so no need to keep them in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-29 10:36:44 +01:00
Enrico Weigelt, metux IT consult
bd271ff0b5 xfree86: ddc: move EDID1_LEN into edid_priv.h
Not used by any external drivers, so no need to keep it public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 20:00:32 +01:00
Enrico Weigelt, metux IT consult
aab09a7b73 xfree86: ddc: move IS_*_STEREO() macros into print_edid.c
Only used there, so no need to keep them in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 19:47:35 +01:00
Enrico Weigelt, metux IT consult
e38aaa19b1 xfree86: ddc: move some parsing EDID macros into ddc.c
Only used there, so no need to keep them in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 19:25:59 +01:00
Enrico Weigelt, metux IT consult
f4a84dc23c xfree86: ddc: drop obsolete IS_STEREO() macro
It's not actually doing something, so we don't really need it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 19:22:18 +01:00
Enrico Weigelt, metux IT consult
de61093cad xfree86: ddc: replace SIG_SETUP()
Trivial enough to replace it easily.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 18:44:44 +01:00
Enrico Weigelt, metux IT consult
75177d9b72 xfree86: ddc: move EDID parser specific macros out of public header
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 18:21:06 +01:00
Enrico Weigelt, metux IT consult
2fe8f72029 xfree86: ddc: replace NEXT_DT_MD_SECTION() macro
trivial enough to be replaced easily.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 17:53:04 +01:00
Enrico Weigelt, metux IT consult
d0c2641715 xfree86: ddc: move input voltage level defines into print_edid.c
Only used in print_edid.c, so no need to keep them in global header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 17:48:35 +01:00
stefan11111
5c4ac767bb kdrive: Try the evdev input driver if nothing the regular drivers aren't compiled
Now that this driver works on most systems (hopefully) without any configuration,
it makes sense to use it as a fallback default.

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2026-01-28 15:05:54 +01:00
Enrico Weigelt, metux IT consult
5b81bcb5b4 xfree86: ddc: drop unused VENDOR_SUPPORT_* defines
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-28 11:09:25 +01:00