diff options
| author | Yonggang Luo <luoyonggang@gmail.com> | 2025-08-05 22:20:09 +0800 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-08-20 16:21:28 +0000 |
| commit | 8ca533c94281bc00e00bd2c96cd43705eea6ee96 (patch) | |
| tree | 16355623a81958503b8c713aebd0fa3d5ad05d84 /meson.build | |
| parent | 82bafaa1fa2d711f2cfa57fddddc3833c530f98f (diff) | |
mesa: refactor the glapi/tls includes into a single, reused header
This is done by introduce predefined macro MESA_SYSTEM_HAS_KMS_DRM=system_has_kms_drm
And after these change, the usage of USE_*_ASM macros in mesa/glapi are avoided.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36635>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 09e2a757bd3..5278d11d658 100644 --- a/meson.build +++ b/meson.build @@ -305,6 +305,11 @@ if freedreno_kmds.length() != 0 and freedreno_kmds != [ 'msm' ] and with_freedre endif endif +pre_args += ['-DMESA_SYSTEM_HAS_KMS_DRM=@0@'.format(system_has_kms_drm.to_int())] +if host_machine.cpu_family() == 'x86' and with_glx_read_only_text + pre_args += ['-DGLX_X86_READONLY_TEXT'] +endif + with_vdrm = [ with_amdgpu_virtio, freedreno_kmds.contains('virtio'), @@ -1326,10 +1331,6 @@ if host_machine.cpu_family() == 'x86' if system_has_kms_drm or host_machine.system() == 'gnu' with_asm_arch = 'x86' pre_args += ['-DUSE_X86_ASM'] - - if with_glx_read_only_text - pre_args += ['-DGLX_X86_READONLY_TEXT'] - endif endif elif host_machine.cpu_family() == 'x86_64' if system_has_kms_drm |