Commit Graph

22156 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
cfaf02414f [PR #1063] dix: use xorg_list saveSet list
PR: https://github.com/X11Libre/xserver/pull/1063
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
9758e92925 [PR #1213] Xext: xres: ProcXResQueryClientIds() use x_rpcbuf_t
PR: https://github.com/X11Libre/xserver/pull/1213
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
d4da946b79 [PR #1358] dix: unexport defaultFontPath
PR: https://github.com/X11Libre/xserver/pull/1358
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
384059ee1f [PR #1383] dix: unexport several extension related functions
PR: https://github.com/X11Libre/xserver/pull/1383
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
2593d76c62 [PR #1387] dix: unexport DontPropagateMask and wDontPropagateMask() macro
PR: https://github.com/X11Libre/xserver/pull/1387
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
b96d0ddb00 [PR #1388] dix: unexport lastResourceType and TypeMask
PR: https://github.com/X11Libre/xserver/pull/1388
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
2d103fe2c3 [PR #1389] dix: unexport internal region helper functions
PR: https://github.com/X11Libre/xserver/pull/1389
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
0421794a30 [PR #1467] dix: unexport defaultColorVisualClass
PR: https://github.com/X11Libre/xserver/pull/1467
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
4c94f31d89 [PR #1469] render: picturestr.h: unexport functions not used by drivers
PR: https://github.com/X11Libre/xserver/pull/1469
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
98e6a0f536 [PR #1481] os: unexport LogHdrMessageVerb()
PR: https://github.com/X11Libre/xserver/pull/1481
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
f99103a1aa [PR #1487] dix: unexport functions from pixmap.h
PR: https://github.com/X11Libre/xserver/pull/1487
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
6546c5862c [PR #1490] treewide: replace min/max macros by non-exported MIN/MAX and deprecate them
PR: https://github.com/X11Libre/xserver/pull/1490
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
59206e366a [PR #1514] dix: inline SProcLookupColor()
PR: https://github.com/X11Libre/xserver/pull/1514
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
d7420911d0 [PR #1515] dix: inline SProcGetProperty()
PR: https://github.com/X11Libre/xserver/pull/1515
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
ae5121043b [PR #1516] dix: inline SProcGrabPointer()
PR: https://github.com/X11Libre/xserver/pull/1516
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
4d5bdb41cf [PR #1517] dix: inline SProcRotateProperties()
PR: https://github.com/X11Libre/xserver/pull/1517
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
11a3121bfb [PR #1518] dix: inline ProcSetScreenSaver()
PR: https://github.com/X11Libre/xserver/pull/1518
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
970edb017c [PR #1519] dix: inline ProcQueryExtension()
PR: https://github.com/X11Libre/xserver/pull/1519
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
1ded81981e [PR #1520] dix: inline SProcCreateGlyphCursor()
PR: https://github.com/X11Libre/xserver/pull/1520
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
87e22bbecf [PR #1522] xwin: drop unused variable
PR: https://github.com/X11Libre/xserver/pull/1522
2025-12-03 10:55:24 +01:00
Enrico Weigelt, metux IT consult
01f5a19f23 [PR #1523] os: merge os/xstrans.c and os/transport.c
PR: https://github.com/X11Libre/xserver/pull/1523
2025-12-03 10:55:24 +01:00
Oleh Nykyforchyn
f4115e69eb dix: initialize all screens before proceeding to gc's, root windows etc
Current code walks along all screens and initializes screen resources,
then gc's, stipples, root windows for each of them, hence after
the first screen registering new private keys is no more possible.
This crashes modesetting driver if it is not initialized before others.

This patch makes screen resources for all screen initialize first, hence
all necessary private keys (including of the type PRIVATE_WINDOW) are
initialized before root windows are created.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
2025-12-03 09:24:33 +01:00
stefan11111
3f821b291e modesetting: get more values from the fallback cursor probe
The space needed to store these extra values is at worst a few dozen bytes.
In exchange for these, larger cursors glyphs can use a more optimal cursor size.

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2025-12-02 10:14:12 +01:00
Enrico Weigelt, metux IT consult
d0b6510b64 composite: declare and initialize reply struct when needed
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-01 16:15:46 +01:00
Enrico Weigelt, metux IT consult
7d8f084fbf dri: use static struct init on declaration & drop useless assignments
Make the code a bit easier to read by using initialization of the reply
structs, at the point of declaration. Most of them aren't written to later,
just passed into WriteReplyToClient(). Also dropping some useless zero
assignments (struct initializers automatically zero-out unmentioned fields).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-01 14:09:02 +01:00
Branimir Ri\v{c}ko
3b99373a17 Fixed a out of bounds read.
Signed-off-by: Branimir Ri\v{c}ko <rickobranimir@gmail.com>
2025-12-01 11:02:06 +01:00
stefan11111
c01c4e7c72 modesetting: Only close the dmabuf fd if it isn't -1
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2025-11-28 18:44:22 +01:00
Icenowy Zheng
03fa63778b modesetting: fix shared pixmap dmabuf fd leakage
After the dmabuf fd exported by another screen is imported to a pixmap,
the pixmap holds a reference for the buffer, thus the FD itself finished
its job and needs to be closed to prevent a stale reference to the
buffer.

Signed-off-by: Icenowy Zheng's avatarIcenowy Zheng <uwu@icenowy.me>
2025-11-28 18:44:22 +01:00
stefan11111
6be7fe9d12 modesetting: print message when reverse prime mode is enabled
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2025-11-28 18:44:22 +01:00
Marc-Alexandre Espiaut
e1b3bbafa8 dix: remove dixLookupBuiltinColor() unused screen argument
Signed-off-by: Marc-Alexandre Espiaut <76531574+malespiaut@users.noreply.github.com>
2025-11-28 18:43:40 +01:00
Herman Semenoff
fc8f9f4331 xfree86: fix infinite boot when parsing incorrect BusID section Device
This change checks if there is a colon after the bus name. If there is none, *retID will point to the final null character of the original string.
2025-11-28 10:07:46 +01:00
Enrico Weigelt, metux IT consult
e14d352661 dix: move GCAllBits define into private header
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 20:05:59 +01:00
Enrico Weigelt, metux IT consult
e0ddc62bd0 os: add header for math related functions (possibly OS optimized)
Adding a new header for math related functions, beginning with new
MIN/MAX macros, which will be used by subsequent commits.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:58:33 +01:00
Enrico Weigelt, metux IT consult
33729b1361 include: windowstr.h: unexport w*() macros
These aren't used by any drivers, so no need to keep them public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:54:42 +01:00
Enrico Weigelt, metux IT consult
ff8d26df21 include: windowstr.h: unexport SameBackground() and SamBorder() macros
Not used by any drivers, so no need to keep them public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:49:14 +01:00
Enrico Weigelt, metux IT consult
2fe5e2519a os: move OsCommRec/Ptr and related functions into own header
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:36:00 +01:00
Enrico Weigelt, metux IT consult
4af16f4ede composite: dont include <dix-config.h> from headers
This file is supposed to be included from each source file at the
very top.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:35:46 +01:00
Enrico Weigelt, metux IT consult
9b8d7d1eb9 treewide: don't include <region.h> anymore
Nothing in there that we need, include <regionstr.h> instead.
But keeping the file in place, until all external consumer have
been migrated.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 19:27:27 +01:00
JSOwens
d4e67aa773 .github: add a check for pull request commits to be signed off
Added a workflow to check the commit messages of a PR to make sure each is
signed off by the author. A repo token is required, here named SECRET_TOKEN,
which has access to read and write PR comments.

Signed-off-by: JSOwens <josephs.owens@gmail.com>
2025-11-27 19:27:15 +01:00
Chase
644d151173 .github: install-prereq.sh: move xproto to meson
Signed-off-by: Chase <chinkle3@illinois.edu>
2025-11-27 19:04:19 +01:00
Enrico Weigelt, metux IT consult
a72972274e mi: drop intToCoord() macro
Not used anywhere, no need to keep it around any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 18:25:12 +01:00
Oleh Nykyforchyn
0230c6e074 dix: reexport ConnectionInfo for NVidia 390
This patch exports ConnectionInfo in server_priv.h and references
it in globals.c to force exporting.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
2025-11-27 17:06:36 +01:00
Chase
341b7f19f8 dbe.c: remove DISABLE_MI_BY_DEFAULT macro 2025-11-27 17:05:31 +01:00
Enrico Weigelt, metux IT consult
bddf4ae8e8 xfree86: move over xf86vidmode extension to hw/xfree86
This extension is private to the xfree86 DDX, no other one supports it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 14:03:37 +01:00
Enrico Weigelt, metux IT consult
b7e9544318 Xext: xvmc: drop dead SHM code path
Xvmc isn't using SHM for over 20 years now. There's still a code path for it
that could be enabled explicitly by manually setting HAS_XVMCSHM, but no
indication whatsoever that this ever has been done.

Considering that Xvmc in general already is obsolete for very long time now,
we can safely assume this code path is really dead and can be removed.

Fixes: 9a26d6f39e
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 13:50:11 +01:00
Enrico Weigelt, metux IT consult
0b3fb18754 xfree86: drop xf86CursorScreenKey macro
Use the actual field directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 13:48:22 +01:00
Enrico Weigelt, metux IT consult
c503343a6b Xext: Xvmc: drop XvMCScreenKey macro
Directly use the actual field instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 13:47:59 +01:00
Enrico Weigelt, metux IT consult
d7b773c174 xfree86: vgaarbiter: drop VGAarbiterScreenKey and VGAarbiterGCKey macros
Use the actual fields directly instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 13:47:05 +01:00
Enrico Weigelt, metux IT consult
85fae9bffb dix: inline SProcAllocColor()
Now that we have untwisted Xinerama side, it's trivial to inline
the few lines for byte-swapping into the actual handlers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 13:46:37 +01:00
Alan Coopersmith
e352fdecfe dix: handle allocation failure in DeviceFocusEvent()
Reported in https://gitlab.freedesktop.org/xorg/xserver/-/issues/1817:

xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:786:5:
 warning[-Wanalyzer-possible-null-dereference]:
 dereference of possibly-NULL ‘xi2event’

Fixes: 3f37923a72 ("Xi: send XI2 focus events." in Xorg 1.10.0)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2078>
2025-11-27 13:36:49 +01:00