kumquat-buildroot/package/mesa3d
Romain Naour 8b114822e9 package/mesa3d: fix drisw build without dri3
mesa3d 23.3 added dri3_priv.h header and dri3_check_multibuffer() function in
drisw (part of swrast gallium driver) that can be build without dri3.

  i686-buildroot-linux-gnu/bin/ld: src/glx/libglx.a.p/drisw_glx.c.o: in function `driswCreateScreenDriver':
  drisw_glx.c:(.text.driswCreateScreenDriver+0x3a0): undefined reference to `dri3_check_multibuffer'
  collect2: error: ld returned 1 exit status

Add HAVE_DRI3 guard around dri3_priv.h header and the zink code using
dri3_check_multibuffer().

While testing again the TestGlxinfo runtime test, a new unexpected error line
appeared in the glxinfo log:

  MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so

mesa3d try to load zink gallium driver even if it was not enabled at
build time, indeed there is no such option in Buildroot.

Apply patches sent upstream:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/6093854455

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-07 16:18:20 +01:00
..
0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch
0002-vc4-add-meson-option-to-disable-optional-neon-suppor.patch
0003-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch
0004-Fix-uClibc-build.patch
0005-util-os_same_file_description-fix-unknown-linux-3.5-.patch
0006-drisw-fix-build-without-dri3.patch
0007-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch
Config.in
mesa3d.hash
mesa3d.mk