xserver: hw/xfree86,include: add a missed ifdef

It is patch 1/7 of a series that provides a convenient way to specify
IgnoreABI and module search paths on a per-driver basis.

It adds #ifdef CONFIG_LEGACY_NVIDIA_PADDING wherever it should be but
is missed.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
This commit is contained in:
Oleh Nykyforchyn
2025-08-23 11:31:52 +03:00
committed by Enrico Weigelt
parent 7aa06ee749
commit 3817846c6d
2 changed files with 8 additions and 2 deletions

View File

@@ -203,10 +203,13 @@ LoaderGetABIVersion(const char *abiclass)
* complexity to the codebase, we will no longer be able to
* support both abi's at once.
*
* We will probably have to add a compile-time flag that switches
* Therefore we have added a compile-time flag that switches
* between abi's.
*/
{ABI_CLASS_VIDEODRV, is_nvidia_proprietary ? ABI_NVIDIA_VERSION :
{ABI_CLASS_VIDEODRV,
#ifdef CONFIG_LEGACY_NVIDIA_PADDING
is_nvidia_proprietary ? ABI_NVIDIA_VERSION :
#endif
LoaderVersionInfo.videodrvVersion},
{ABI_CLASS_XINPUT, LoaderVersionInfo.xinputVersion},
{ABI_CLASS_EXTENSION, LoaderVersionInfo.extensionVersion},

View File

@@ -38,6 +38,9 @@
/* Support XDM-AUTH*-1 */
#mesondefine HASXDMAUTH
/* Add a padding for legacy nvidia drivers that support old ABI */
#mesondefine CONFIG_LEGACY_NVIDIA_PADDING
/* Define to 1 if you have the `reallocarray' function. */
#mesondefine HAVE_REALLOCARRAY