Commit Graph

21800 Commits

Author SHA1 Message Date
sesankm
79d092cfb9 glx: glxcmds: use rpcbuf to build xGLXGetDrawableAttributesReply payload
Signed-off-by: sesankm <26676400+sesankm@users.noreply.github.com>
2025-09-26 11:50:39 +02:00
sesankm
9d6094442a dix: rpcbuf: export x_rpcbuf_write_CARD32s for glx
Signed-off-by: sesankm <26676400+sesankm@users.noreply.github.com>
2025-09-26 11:50:39 +02:00
Enrico Weigelt, metux IT consult
da1509c364 render: consolidate byte-swapping in ProcRenderAddGlyphs()
No need for extra functions and call tables for the few trivial lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:49:18 +02:00
Enrico Weigelt, metux IT consult
56830521c1 render: consolidate byte-swapping in ProcRenderSetPictureClipRectangle()
No need for extra functions and call tables for the few trivial lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:49:10 +02:00
Enrico Weigelt, metux IT consult
3f5fdfc615 Xi: inline SProcXGrabDeviceKey()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:49:06 +02:00
Enrico Weigelt, metux IT consult
0c40403eb7 Xi: inline SProcXChangeDeviceDontPropagateList()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:48:27 +02:00
Enrico Weigelt, metux IT consult
71133d6502 Xi: inline SProcXSendExtensionEvent()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:48:16 +02:00
Enrico Weigelt, metux IT consult
3ddf48f3c6 dbe: replace dbeScreenPrivKey and dbeWindowPrivKey macros
No need for the extra macros, we can just use the corresponding
structs directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:47:28 +02:00
Enrico Weigelt, metux IT consult
16c0f1dfb8 dix: move struct _WorkQueue definition into dixutil.c
It's only used inside dixutil.c, nowhere else, especially not drivers,
so no need to keep it in public SDK. Safe for ABI-25.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:47:15 +02:00
Enrico Weigelt, metux IT consult
6cb3338c0b xkb: inline SProcXkbUseExtension()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:47:04 +02:00
Enrico Weigelt, metux IT consult
8daa5bc8b9 xkb: inline SProcXkbBell()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:46:50 +02:00
Enrico Weigelt, metux IT consult
8d100100af xkb: inline SProcXkbGetControls()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:46:38 +02:00
Enrico Weigelt, metux IT consult
9879290e2f xkb: inline SProcXkbGetMap()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:46:26 +02:00
Enrico Weigelt, metux IT consult
39f9bbd827 xkb: inline SProcXkbGetIndicatorState()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:46:13 +02:00
Enrico Weigelt, metux IT consult
3d787e4c48 xkb: inline SProcXkbGetNamedIndicator()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:46:01 +02:00
Enrico Weigelt, metux IT consult
68e134de44 xkb: inline SProcXkbGetNames() and SProcXkbSetNames()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:45:49 +02:00
Enrico Weigelt, metux IT consult
1b719f8710 randr: xinerama: inline byte-swapping into actual request handlers
No need to have whole extra functions for just a few LoC, and in the
future the whole thing will become more simplified by generic macros.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:45:38 +02:00
Enrico Weigelt, metux IT consult
1cddcc087f xkb: inline SProcXkbGetCompatMap()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:45:25 +02:00
Enrico Weigelt, metux IT consult
8c545a6528 xkb: inline SProcXkbGetDeviceInfo()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:45:12 +02:00
Enrico Weigelt, metux IT consult
9eba2365c9 xkb: inline SProcXkbListComponents()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:44:59 +02:00
Enrico Weigelt, metux IT consult
25adcbfd5a xkb: inline SProcXkbSetGeometry()
No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-26 11:44:47 +02:00
Enrico Weigelt, metux IT consult
4ae70b0a09 os: Xtranssock: fix warning on strncpy() call
> ../os/Xtranssock.c:494:5: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation]
>  494 |     strncpy(addr->sa_data, port, portlen);
>      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../os/Xtranssock.c:446:15: note: length computed here
>  446 |     portlen = strlen(port) + 1; // include space for trailing null
>      |               ^~~~~~~~~~~~

Since we already know the string length, we can just use memcpy()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 16:40:43 +02:00
Enrico Weigelt, metux IT consult
62174b33c3 include: move CharInfoPtr definition to gcstruct.h
Move it to where it's really needed.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 15:34:50 +02:00
Enrico Weigelt, metux IT consult
f2ce732ef5 treewide: replace PictFormatShort by pixman_format_code_t
Try not to use old compat macros anymore, use the real ones instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 14:28:06 +02:00
Enrico Weigelt, metux IT consult
dcaaa4a355 xfree86: drop XF86XvScreenKey field
Not used by any drivers anymore, so no need to keep it around any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 14:27:53 +02:00
Enrico Weigelt, metux IT consult
6168868906 dix: replace XACE_SERVER_ACCESS by direct callback
Move the callbacks directly into DIX, since it's actually core infrastructure.
Also simplifying the whole machinery, by just using a simpel CallbackListPtr.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 14:27:41 +02:00
Enrico Weigelt, metux IT consult
bd41233e47 vfb: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:49:14 +02:00
Enrico Weigelt, metux IT consult
2112cbb876 xwin: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:49:05 +02:00
Enrico Weigelt, metux IT consult
c9437b5467 Xi: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:48:53 +02:00
Enrico Weigelt, metux IT consult
0ade4aef80 mi: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:48:41 +02:00
Enrico Weigelt, metux IT consult
45af32a981 render: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:48:32 +02:00
Enrico Weigelt, metux IT consult
8cf54c5f6c randr: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:48:21 +02:00
Enrico Weigelt, metux IT consult
8e2c1ad714 glx: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:48:08 +02:00
Enrico Weigelt, metux IT consult
fde67a4557 composite: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:47:57 +02:00
Enrico Weigelt, metux IT consult
6996fe65af kdrive: fix missing includes of extinit.h
Don't rely on this file just being included indirectly by somebody else
just by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 13:14:05 +02:00
Enrico Weigelt, metux IT consult
e918002361 record: inline SProc*()
The few LoC can be easily inlined into the actual request handlers,
so no need for having a whole bunch of extra functions for that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 09:37:36 +02:00
Enrico Weigelt, metux IT consult
13451e602e pseudoramiX: inline SProc*()
The few LoC for the bytes-wapping are so trivial that we can easily
inline them instead of having a whole bunch of extra functions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 09:37:15 +02:00
Enrico Weigelt, metux IT consult
5cdfe6e5ab os: move enum ExitCode into private header
Not used by any external drivers, so no need to keep it public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 09:37:05 +02:00
Enrico Weigelt, metux IT consult
678b025df5 include: misc.h: drop duplicate definition of CallbackListPtr
This type is already defined in `include/callback.h` - anybody who wants it
most likely needs that include file, too.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-25 09:36:53 +02:00
Enrico Weigelt, metux IT consult
41d2eae91f .github: use latest driver releases
Use the latest driver release tags for CI build.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 17:33:40 +02:00
Enrico Weigelt, metux IT consult
9b1fb83d6b os: xtrans: drop unused transport table indices
These aren't used anymore, so no need to keep them any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 16:34:33 +02:00
Enrico Weigelt, metux IT consult
e1d372db70 os: xtrans: drop unused _XSERVTransBytesReadable()
Not used anywhere, so no need to keep it around anymore.
Also dropping the BytesReadable vector, which is unused now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 15:53:57 +02:00
SuperDuperDeou
641b8a51cb composite: more C99 declaration
Signed-off-by: SuperDuperDeou <87223140+SuperDuperDeou@users.noreply.github.com>
2025-09-24 15:21:39 +02:00
Enrico Weigelt, metux IT consult
80e6e7693b os: log: make LogVHdrMessageVerb() static
Only used inside log.c and not exported, so can be made static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:58:46 +02:00
Enrico Weigelt, metux IT consult
bb5eeac791 render: consolidate byte-swapping in ProcRenderFreeGlyphSet()
No need for extra functions and call tables for the few trivial lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:40:18 +02:00
Enrico Weigelt, metux IT consult
91902cdd86 render: consolidate byte-swapping in ProcRenderCreatePicture()
No need for extra functions and call tables for the few trivial lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:40:06 +02:00
Enrico Weigelt, metux IT consult
4fa442b6eb Xi: inline SProcXChangeDeviceControl()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:39:51 +02:00
Enrico Weigelt, metux IT consult
88ed85dffc Xi: inline SProcXGrabDevice()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:39:00 +02:00
Enrico Weigelt, metux IT consult
2b9c079b86 Xi: inline SProcXChangeFeedbackControl()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:38:50 +02:00
Enrico Weigelt, metux IT consult
2e64ce88ea Xi: inline SProcXSelectExtensionEvent()
No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-24 11:38:34 +02:00