Commit Graph

131 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult fc0ed0a6c7 drop DEFAULT_VERBOSE and DEFAULT_LOG_VERBOSE 2025-05-22 17:35:15 +02:00
Enrico Weigelt, metux IT consult 2531af0f24 (need_nv) xf86NumGPUScreens 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 9259a21bf3 (need_nv) xf86GPUScreens 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 0558f55ce7 xf86LogVerbose 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 2a824ab2c1 xf86Verbose 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult c22ce46fbc xf86VisualNames 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 17678e9b0f (need_nv) xf86NumScreens 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 3d8127e694 xf86Initialising 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult a301b23a6f xf86Resetting 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 2b3bb37bfa xf86NumDrivers 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult f0d38b8c5e (need_nv) xf86ConfigLayout 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 00264a3ec5 xf86LogFile* 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 46b3da1d3f xf86ModPathFrom 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 6f940355e0 xf86ModulePath 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult b5abd1b125 xf86Gamma 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 57e0c759c4 xf86FlipPixels 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult fe2360b462 xf86Weight 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult eeecfa3643 xf86KeyboardName 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult ecfd7157a4 xf86PointerName 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 75dc951091 xf86ScreenName 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult c6536f748b xf86LayoutName 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 0d8587f201 xf86acpiDisableFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 2620fbfdd0 xf86xkbdirFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 92b27ecd06 xf86silkenMouseDisableFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 6fcb8d61ea xf86bsDisableFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 9cf8e07b3d xf86bsEnableFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult f244916c75 drop xf86sFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 48677523d1 xf86fpFlag 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 15a7ab17a5 xf86VidModeAllowNonLocal 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 1fa31bb9b4 xf86VidModeDisabled 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult baa1a5c1f9 xf86AutoBindGPUDisabled 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult fad57999a2 xf86AllowMouseOpenFail 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult bbe5866974 xf86ConfigDir 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult 8fc29e82a6 xf86ConfigFile 2025-05-22 17:35:14 +02:00
Enrico Weigelt, metux IT consult e3fb6235c2 (!1982) xfree86: xf86Priv.h: dont include propertyst.h
Nothing in here needs anything from that include file, so no need for
including it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 17:34:39 +02:00
Enrico Weigelt, metux IT consult d6e1efa3c1 (!2000) xfree86: drop ifdefs on _NO_XF86_PROTOTYPES
Nothing ever sets this symbol, so can be dropped.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 17:34:34 +02:00
Enrico Weigelt, metux IT consult e8c4857938 xfree86: unexport xf86SetVerbosity() and xf86SetLogVerbosity()
These aren't used by any modules/drivers, so no need to keep them exported.
Also drop the return value, which isn't used by any caller.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1687>
2024-10-10 18:25:54 +00:00
Enrico Weigelt, metux IT consult 4705fa933a xfree86: drop unneeded wrapper xf86PrivsElevated()
It's just a dumb wrapper around PrivsElevated(), and also just called in few
places, while others call PrivsElevated() directly - thus not needed and
can be dropped.

Note that it's also not called by drivers, so the export was unnecessary.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1324>
2024-02-29 10:04:34 +00:00
Izumi Tsutsui 15624bb5bc Revert "xfree86: Remove -flippixels"
This reverts commit d1c00c859c except
hw/xfree86/common/xf86str.h that was not used by -flipPixels option.
2024-01-03 19:43:16 +00:00
nerdopolis b8c12aac65 xfree86: On Linux, while only seat0 can have TTYs, don't assmume all seat0s have TTYs 2021-11-06 17:17:01 +00:00
Dave Airlie 078277e4d9 xf86: autobind GPUs to the screen
This is a modified version of a patch we've been carry-ing in Fedora and
RHEL for years now. This patch automatically adds secondary GPUs to the
master as output sink / offload source making e.g. the use of
slave-outputs just work, with requiring the user to manually run
"xrandr --setprovideroutputsource" before he can hookup an external
monitor to his hybrid graphics laptop.

There is one problem with this patch, which is why it was not upstreamed
before. What to do when a secondary GPU gets detected really is a policy
decission (e.g. one may want to autobind PCI GPUs but not USB ones) and
as such should be under control of the Desktop Environment.

Unconditionally adding autobinding support to the xserver will result
in races between the DE dealing with the hotplug of a secondary GPU
and the server itself dealing with it.

However we've waited for years for any Desktop Environments to actually
start doing some sort of autoconfiguration of secondary GPUs and there
is still not a single DE dealing with this, so I believe that it is
time to upstream this now.

To avoid potential future problems if any DEs get support for doing
secondary GPU configuration themselves, the new autobind functionality
is made optional. Since no DEs currently support doing this themselves it
is enabled by default. When DEs grow support for doing this themselves
they can disable the servers autobinding through the servers cmdline or a
xorg.conf snippet.

Signed-off-by: Dave Airlie <airlied@gmail.com>
[hdegoede@redhat.com: Make configurable, fix with nvidia, submit upstream]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
---
Changes in v2:
-Make the default enabled instead of installing a xorg.conf
 snippet which enables it unconditionally

Changes in v3:
-Handle GPUScreen autoconfig in randr/rrprovider.c, looking at
 rrScrPriv->provider, rather then in hw/xfree86/modes/xf86Crtc.c
 looking at xf86CrtcConfig->provider. This fixes the autoconfig not
 working with the nvidia binary driver
2019-08-07 12:26:59 +02:00
Aaron Plattner 147ed28bbf xfree86: Export xf86GPUScreens and xf86NumGPUScreens
Drivers may need to loop over the allocated screens during PreInit, for example
to consolidate xorg.conf options that apply to a GPU device as a whole.
Currently, this works for protocol screens becuase x86Screens is exported, but
does not work for GPU screens.

Export xf86GPUScreens and xf86NumGPUScreens for consistency with xf86Screens and
xf86NumScreens.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2019-04-12 21:45:19 +00:00
Adam Jackson d1c00c859c xfree86: Remove -flippixels
No supported driver supports 1bpp anymore, nor has in a very long time.
This option only worked with vgahw anyway.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-09-27 16:50:22 +00:00
Adam Jackson a56da0ff28 include: Remove now-dead declarations
60ec8ead broke the autotools build:

    sdksyms.o:(.data+0x58): undefined reference to `InitConnectionLimits'
    sdksyms.o:(.data+0x2ec8): undefined reference to `xf86ServerName'
    collect2: error: ld returned 1 exit status
    Makefile:811: recipe for target 'Xorg' failed

Likewise 3a4d7c79 for InitConnectionLimits.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-09-12 17:23:53 -04:00
Keith Packard 38ff29ec8e modesetting: Allow a DRM fd to be passed on command line with -masterfd [v2]
This lets an application open a suitable DRM device and pass the file
descriptor to the mode setting driver through an X server command line
option, '-masterfd'.

There's a companion application, xlease, which creates a DRM master by
leasing an output from another X server. That is available at

	git clone git://people.freedesktop.org/~keithp/xlease

v2:
	Always print usage, but note that it can't be used if
	setuid/gid

	Suggested-by: Lyude Paul <lyude@redhat.com>

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
2018-06-28 22:54:22 -07:00
Adam Jackson 4353d83f60 xfree86: remove xf86CaughtSignal etc.
This no longer does anything useful.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2017-12-13 11:11:44 -05:00
Adam Jackson e4d0757fc2 xfree86: Remove driver entity hooks and private
No driver is using these, as far as I know.

v2: Tripwire the entity hook arguments to xf86Config*Entity, fix
documentation (Eric Anholt)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-03-30 11:32:02 -04:00
Adam Jackson e33be78e2a xfree86: Remove 24bpp pixmap format support (v2)
There's really no reason to pretend to support this, apps hate it, all
we're doing is giving people a way to injure themselves. It doesn't work
anyway with any Radeon, any NVIDIA chip, or any Intel chip since i810.
Rip out all the logic for handling 24bpp pixmaps and framebuffers, and
silently ignore the old options that would ask for it.

The cirrus alpine driver has been updated to default to 16bpp, and both
it and the i810 driver can now use the 32->24 conversion code in shadow
if they want. All other drivers support 32bpp. Configurations that
explicitly request 24bpp in order to fit in VRAM will be broken now
though.

v2: Fix command line options to silently ignore 24bpp rather than fail

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-03-17 15:14:38 -04:00
Keith Packard 9d15912aa4 Remove fd_set from Block/Wakeup handler API
This removes the last uses of fd_set from the server interfaces
outside of the OS layer itself.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-07-18 15:27:51 -04:00
Adam Jackson a1b13cda61 xfree86: Remove xf86RegisterRootWindowProperty
All consumers have been ported to the root window callback, so this can
all be nuked.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-04-18 11:23:10 -04:00