Commit Graph

41 Commits

Author SHA1 Message Date
jsg
044beb4f3b we need to unconditionally build libvtn now
sparc64 build error reported by deraadt@
2024-06-18 02:44:13 +00:00
jsg
be1ea71f8e libvtn is now required where libmesa is used
Fixes missing symbols at runtime on macppc.
Reported and tested by Donovan Watteau.
2024-06-17 01:29:12 +00:00
jsg
df0b50e2ba fix the build on archs where vulkan is not built
reported by deraadt@
2024-04-03 22:10:09 +00:00
jsg
f3c1e4e9c8 Merge Mesa 23.3.6 2024-04-02 10:41:59 +00:00
jsg
1580297f05 link libgbm with xrandr-xcb
fixes graphics/clutter/cogl build failure reported by tb@
2023-11-03 00:58:54 +00:00
jsg
4f0d84743f Merge Mesa 23.1.9 2023-11-02 04:53:12 +00:00
robert
dac209564b add the build id for libvulkan_radeon just like the intel* modules
this fixes an unveil issue where mesa was trying to stat the module
to build an UUID because the build id was not available

ok jsg@
2023-04-24 14:17:55 +00:00
jsg
5f7ec4d460 Merge Mesa 22.3.7 2023-04-06 10:23:42 +00:00
jsg
fd832fbd7c reorder libEGL Makefile so ${X11BASE}/lib is searched after obj dir
problem spotted by, feedback from, and ok naddy@
2023-03-19 10:24:26 +00:00
jsg
687ad7826d revert upstream Mesa changes to remove non-TLS paths
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17814
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213

Emulated TLS isn't enough when many shared libraries are involved.
This caused problems with some ports: kitty, calibre, qutebrowser.

reported by tb@ and others
2023-03-10 04:15:06 +00:00
jsg
70e55f99c0 build libmesa_util_sse41 on all archs
swrast_dri.so had an undefined reference to util_streaming_load_memcpy
on non-x86 archs.

Part of streaming-load-memcpy.c / libmesa_util_sse41.
When USE_SSE41 is not defined, memcpy() is used.

problem noticed at runtime on arm64 by mlarkin@
with and ok tb@
2023-03-03 06:32:18 +00:00
jsg
d559c33fb8 link against libpthread where libmesa_util_c11 is used
OpenBSD doesn't have c11 threads.h functions.  Instead Mesa's
replacements are used.

fixes build of graphics/piglit reported by naddy@
2023-01-31 03:29:36 +00:00
jsg
286474af33 only link libmesa_util_sse41 when WITH_SSE41=yes
from deraadt@
2023-01-29 12:20:31 +00:00
jsg
60f4c250b1 only link libmesa_util_sse41 when WITH_SSE41=yes
build break on powerpc64 reported by deraadt@
2023-01-28 22:09:39 +00:00
jsg
b5d82fed48 Merge Mesa 22.3.4 2023-01-28 08:56:19 +00:00
jsg
2e058c3cd9 Merge Mesa 22.1.7 2022-09-02 05:46:23 +00:00
jsg
e65b7da5d2 don't build Mesa against llvm on 32-bit powerpc
gkoehler mentioned running glxgears with the Mesa LLVMpipe driver
on macppc triggers an LLVM error

tested by matthieu@ (with a proposed Mesa 22.1 update) on macppc G4/400
2022-08-23 04:15:02 +00:00
jsg
f4f27ace9a Merge Mesa 21.3.8 2022-04-21 04:37:17 +00:00
jsg
3645f67459 move u_printf_length() to new file
lld can remove unused c++ sections from u_printf.cpp with --gc-sections
ld.bfd from binutils 2.17 can't unless this function is moved

u_printf_length() was added to u_printf.cpp upstream in
vulkan: Add vk_asprintf and vk_vasprintf helpers
2db5536a461734a818caf4f519e3286accb0818f

problem reported by deraadt@ and visa@ on sparc64 and octeon
2022-02-25 23:36:14 +00:00
jsg
d2e038dc42 put .a files in a linker group to avoid an undefined reference
to loader_dri_create_image with ld.bfd from binutils 2.17

reported and tested by visa@
2022-02-25 22:12:32 +00:00
jsg
e29638c5c2 build u_printf.cpp with -ffunction-sections -fdata-sections and
link libmesa_util.a users with --gc-sections

avoids unwanted external references in shared libraries:
_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm
_ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv
_ZdlPv
_Znwm
__gxx_personality_v0

follows what the meson build does

problem reported by sthen@ when building sd2-ttf on i386
2022-02-25 06:23:08 +00:00
jsg
cabb55c456 add libradeonsi_gfx* Makefiles 2022-02-24 03:02:07 +00:00
jsg
75c717308a Merge Mesa 21.3.7 2022-02-24 02:29:36 +00:00
jsg
9cbb668dec match pkg-config files created by meson build 2021-08-01 02:34:50 +00:00
jsg
00d92b1a3b link libraries in a group matching meson build
linking against a libEGL built with ld.bfd had undefined symbols
reported by cwen@ tested by cwen@ on macppc and jca@ on sparc64
ok jca@
2021-08-01 01:52:49 +00:00
jsg
3b974c2ba8 update Makefiles and generated files for Mesa 21.1.5 2021-07-22 11:10:08 +00:00
matthieu
80198aa25a support xf86-video-radeon and xf86-video-amdgpu drivers on riscv64.
from jsg@, ok kettenis@
2021-06-25 19:32:01 +00:00
kettenis
fdb8ab144f Build AMD drivers on powerpc64.
ok jsg@
2020-10-26 14:37:14 +00:00
jsg
ead9561df6 disable noisy -Winitializer-overrides warnings 2020-09-22 04:39:21 +00:00
jsg
41a55d0330 Merge Mesa 20.0.8
With Mesa 20.1 even after the kernel change to do wbinvd on all cpus
sthen@ reported that hard hangs still occurred on his Haswell system
with inteldrm.

Mark Kane also reported seeing hangs on Ivy Bridge on bugs@.

Some systems/workloads seem to be more prone to triggering this than
others as I have not seen any hangs on Ivy Bridge and the only hangs
I saw on Haswell when running piglit went away with the wbinvd change.

It seems something is wrong with drm memory attributes or coherency in
the kernel and newer Mesa versions expect behaviour we don't have.
2020-09-22 02:08:55 +00:00
jsg
db72a90efc link with version script matching meson changes in 20.1.7 2020-09-04 11:27:58 +00:00
jsg
e8254d1b08 Avoid problems with undefined symbols on ld.bfd archs caused by order of
.a files.

problem reported by jca@ on sparc64 with ports which link libgbm
ok jca@
2020-09-03 11:29:42 +00:00
jsg
1c86a17858 Merge Mesa 20.1.7 2020-09-03 07:17:20 +00:00
jsg
38d06173f5 build with NDEBUG to disable asserts
matches autotools build when --enable-debug is not specified and meson with
--buildtype=release
2020-09-01 06:54:06 +00:00
jsg
0167b90cd0 explicitly remove *.la files from old Mesa builds
While we no longer install .la files for Mesa naddy@ pointed out that
using libtool to build something like libGLU could result in .la files
which reference old Mesa .la files.

Remove Mesa .la files found in DESTDIR on install as suggested by
millert@

ok millert@ matthieu@ deraadt@
2020-08-28 16:07:18 +00:00
jsg
abbb20036f build with -DMISSING_64BIT_ATOMICS on powerpc 2020-08-27 13:34:33 +00:00
jsg
3f2636fe13 build addrlib with -Wno-unused-variable matching meson build 2020-08-27 05:02:25 +00:00
jsg
d9428e1972 build with -Wno-typedef-redefinition
clang with -std=c99 generates warnings on typedef redefinition
likely unnoticed upstream as gcc does not do this

excessive amounts of warnings from vulkan driver headers pointed
out by deraadt@
2020-08-27 03:18:26 +00:00
jsg
d3580fdc06 crank glapi minor for new symbol 2020-08-26 06:54:57 +00:00
jsg
9f3ce83c68 adjust for files which are symlinks in distfile 2020-08-26 06:36:08 +00:00
jsg
6cd42bcb24 Merge Mesa 20.1.6 2020-08-26 06:02:31 +00:00