Enrico Weigelt, metux IT consult
fea6b99519
randr: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
00ab4ff813
render: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
5bcbacce6c
present: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
4454b71f4b
pseudoramiX: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
b4df6f1fe3
record: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
9b88a64ba9
dbe: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
96344583e4
composite: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
eea9e4e84b
xfixes: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:49 +00:00
Enrico Weigelt, metux IT consult
9af095e121
xkb: drop swapping request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
44c063d93d
Xext: xtest: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
c3e1f6fccf
Xext: vidmode: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
dab1299745
Xext: shape: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
67a3319d73
Xext: security: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
bacc4b1477
Xext: saver: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
ef396a28b7
xquartz: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
a623060185
xkb: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
4b2115a182
randr: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
fc9f8f8d3c
Xi: fix length checking with bigreq
...
The authorative source of the request frame size is client->req_len,
especially with big requests larger than 2^18 bytes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639 >
2025-02-06 22:28:48 +00:00
Enrico Weigelt, metux IT consult
e1e8ab3ddf
mi: miline.h: drop DEFAULTZEROLINEBIAS from public header
...
This define in only used locally, in exactly one source file,
thus no neeed to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1726 >
2025-02-06 22:18:12 +00:00
Enrico Weigelt, metux IT consult
c06d9da5b6
mi: miline.h: unexport only locally used macros
...
These macros are only used in one source file, so move them there.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1726 >
2025-02-06 22:18:11 +00:00
Enrico Weigelt, metux IT consult
36dd28129b
Xext: geext: simplify dispatcher
...
Most of the complexity here isn't needed at all. It can be really trivial,
since we just have one operation anyways.
It's also much cleaner to use the defines from proto headers instead of
raw numbers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1596 >
2025-02-06 21:26:32 +00:00
Enrico Weigelt, metux IT consult
6df7ba38ae
Xext: geext: drop unused variable extEntry
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1596 >
2025-02-06 21:26:32 +00:00
Enrico Weigelt, metux IT consult
a57db845bb
Xext: shape: clean up Xinerama dispatch
...
Simplify the dispatching by moving the branching between Xinerama
vs. single screen into the actual request handlers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1598 >
2025-02-06 21:08:13 +00:00
Enrico Weigelt, metux IT consult
6825f89cd2
mi: drop now obsolete mioverlay.h
...
This used to be part of public API, but no (known) driver ever
using it, nor any exported functions left. The only internal consumer
(mioverlay.c) also gone now, so it's time to drop this file.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
65b738ed60
mi: drop now obsolete mioverlay.c
...
Since it became practically empty, we can remove it now.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
00796cbf8c
mi: drop obsolete miOverlaySetRootClip()
...
Not used by any (known) drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
54704e4a50
mi: drop obsolete miOverlaySetTransFunction()
...
Not used by any (known) drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
be6985948d
mi: drop obsolete miOverlayCopyUnderlay()
...
Not used by any (known) drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
bfb69b7316
mi: drop obsolete miOverlayComputeCompositeClip()
...
Not used by any (known) drivers anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
a860ce2c9f
mi: drop obsolete miOverlayCollectUnderlayRegions()
...
Not used by any known drivers/modules.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
2c21824ee9
mi: drop obsolete miOverlayGetPrivateClips()
...
It's not used anymore, not even by any (known) drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
12ab2e314b
mi: drop obsolete miInitOverlay()
...
It doesn't seem to be used anywhere for quite some time.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1503 >
2025-02-06 21:00:08 +00:00
Enrico Weigelt, metux IT consult
30fb73d9af
Xnest: drop obsolete xnest-config.h
...
This file became pretty no-op, just including dix-config.h.
So we can remove it now and include dix-config.h directly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1632 >
2025-02-06 20:22:52 +00:00
Enrico Weigelt, metux IT consult
7130072dc5
Xnest: no need to include xkb-config.h
...
Xnest doesn't need anything from xkb-config.h, so no need to include it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1632 >
2025-02-06 20:22:52 +00:00
Enrico Weigelt, metux IT consult
ec13a6a61f
Xnest: simplify disabling unsupported extension
...
Instead of strange #undef hacks in various places, just go the straight
route and set the corresponding no*Extension flags on server startup.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1632 >
2025-02-06 20:22:52 +00:00
Enrico Weigelt, metux IT consult
a647cc8a41
glx: DoQueryContext(): use core's swapping macros
...
No need to have duplicated byte swapping macros in GLX for things that
the core alreay provides. Using core's macros is actually even easier.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
56ca98aa47
glx: DoQueryContext(): drop duplicate write path
...
We now have two copies of the same write path in both swapped and
non-swapped branch. One is enough.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
ab4142bc75
glx: DoQueryContext(): determine reply length from buffer size
...
The reply length (in units as well as bytes) can safely be determined
at compile time, by using sizeof() operator. No need for unnecessarily
complicated shifting bits back and forth.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
ef77c486d5
glx: DoQueryContext(): explicitly use reply buf type defined by spec
...
The spec defines the reply as array of "CARD32", not "int". The latter
just accidentially has the same type (for now :o), but it's *semantically*
incorrect. Using CARD32 instead.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
0a7763bfce
glx: DoQueryContext(): use fixed size array instead of variable length
...
Our array here really is fixed, but it's size is determined by a variable
(that's assigned a fix values), unncessarily making it a VLA (even making
it const doesn't change that), so giving false alarms when compiling w/
-Wvla or -Werror=vla.
Replacing the variable by #define trivially fixes this.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
6bd673ab15
glx: use sizeof() for reply struct
...
The reply struct's size can safely be determined by the sizeof()
operator, so no need for using an extra define here. Making the code
easier to read and also open the door for future convenience macros
that might determine the buffer size on their own.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:23 +00:00
Enrico Weigelt, metux IT consult
558ded4dbf
glx: assign at declaration
...
Assigning structs at declaration is quicker to read/understand. No need
to support ancient compilers that couldn't do that, anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665 >
2025-02-06 20:04:22 +00:00
Enrico Weigelt, metux IT consult
161c3c8398
os: drop obsolete LogHdrMessage()
...
This function isn't used anywhere, so no need to keep it around.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1677 >
2025-02-06 19:57:52 +00:00
Enrico Weigelt, metux IT consult
216fc6fe83
dix: drop remains of ancient code generator
...
This script used to generated xproto header as well as a piece of source
for initializing the builtin atoms in the Xserver (MakePredeclaredAtoms()).
At least with R6.6 baseline it didn't seem to be used anymore, and - at least
since the modularization - it's completely broken and useless.
Since we now have a new generator, running directly in the build process,
this ancient script can be dropped.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1670 >
2025-02-06 19:29:52 +00:00
Enrico Weigelt, metux IT consult
44e6558934
dix: generate MakePredeclaredAtoms() from BuiltInAtoms file
...
This function probably been (half?) auto generated somewhere back in the
dark ages (there're still remains of the former generator, which doesn't
work anymore, and hasn't been updated for ages). It's been added to SCM
with R6.6 baseline - and from that on manually maintained.
Adding a little generator to create source from "BuiltInAtoms" file,
directly in the build process.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1670 >
2025-02-06 19:29:52 +00:00
Enrico Weigelt, metux IT consult
4775f547d8
netbsd: disable pccons support
...
On NetBSD, pccons is (almost) dead: only remaining port is arc,
but only on some specific kernel, which is unlikely to be used
for running X.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1588 >
2025-02-06 19:03:25 +00:00
Enrico Weigelt, metux IT consult
3ed962b858
xfree86: os-support: bsd: consolidate duplicate defines
...
Consolidate defines duplicated across several sources into one header.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1411 >
2025-02-06 16:22:42 +00:00
Enrico Weigelt, metux IT consult
923da4d569
xfree86: os-support: unexport DEV_MEM defines
...
DEV_MEM define isn't used by any drivers, and BSD seems to be the only one
left using that define (Linux uses the symbol, but defines on its own)
Therefore, just define it where actually used and drop it from the global
xf86OSlib.h file.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1411 >
2025-02-06 16:22:42 +00:00
Enrico Weigelt, metux IT consult
d79432e0d4
Xnest: tidy up extension blacklisting in miinitext.c
...
The DDX'es sometimes need to disable certain extensions. Instead of complex
include cascades with ifdef'ed ddx-specific include from dix code, it's
more clean to add some clear and explicit knobs set by the DDX'es individual
meson.build.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1401 >
2025-02-06 16:14:03 +00:00
Enrico Weigelt, metux IT consult
584bbe9988
xfree86: parser: rename IOBASE for fixing name conflict
...
Resolve conflicts with OS headers definining IOBASE by renaming the
IOBASE enum value to XF86_TOKEN_IOBASE.
This way, don't need the special #undef hack anymore.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1405 >
2025-02-06 16:05:00 +00:00