Patch added to solve a build failure, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/5471
Search Criteria
Package Details: mesa-minimal-git 24.3.0_devel.194673.5db135f66ad-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/mesa-minimal-git.git (read-only, click to copy) |
---|---|
Package Base: | mesa-minimal-git |
Description: | an open-source implementation of the OpenGL specification, stripped down git version |
Upstream URL: | https://www.mesa3d.org |
Licenses: | MIT AND BSD-3-Clause AND SGI-B-2.0 |
Conflicts: | libva-mesa-driver, mesa, mesa-libgl, mesa-vdpau, opencl-clover-mesa, opencl-rusticl-mesa, vulkan-intel, vulkan-mesa-layers, vulkan-nouveau, vulkan-radeon, vulkan-swrast, vulkan-virtio |
Provides: | libva-mesa-driver, mesa, mesa-vdpau, opengl-driver, vulkan-driver, vulkan-intel, vulkan-mesa-layers, vulkan-radeon, vulkan-swrast, vulkan-virtio |
Submitter: | shoober420 |
Maintainer: | Lone_Wolf |
Last Packager: | Lone_Wolf |
Votes: | 11 |
Popularity: | 0.011031 |
First Submitted: | 2020-12-10 00:38 (UTC) |
Last Updated: | 2024-09-11 18:17 (UTC) |
Dependencies (55)
- expat (expat-gitAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- libdrm (libdrm-gitAUR)
- libelf (elfutils-gitAUR)
- libglvnd (libglvnd-gitAUR)
- libunwind (libunwind-carbonAUR, libunwind-gitAUR)
- libx11 (libx11-gitAUR)
- libxcb (libxcb-gitAUR)
- libxdamage
- libxext (libxext-gitAUR)
- libxfixes
- libxshmfence
- libxxf86vm
- llvm-libs-minimal-gitAUR
- lm_sensors (lm_sensors-gitAUR)
- spirv-tools (spirv-tools-gitAUR)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-selinuxAUR, systemd-libs-gitAUR, systemd-libs-fmlAUR)
- vulkan-icd-loader (vulkan-icd-loader-gitAUR)
- wayland (wayland-gitAUR, wayland-asan-gitAUR, wayland-chromiumAUR)
- xcb-util-keysyms
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- zstd (zstd-gitAUR, zstd-staticAUR)
- clang-minimal-gitAUR (make)
- clang-opencl-headers-minimal-gitAUR (make)
- elfutils (elfutils-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glslang (glslang-gitAUR) (make)
- libclc-minimal-gitAUR (make)
- libdrm (libdrm-gitAUR) (make)
- libglvnd (libglvnd-gitAUR) (make)
- libunwind (libunwind-carbonAUR, libunwind-gitAUR) (make)
- libva (libva-gitAUR, intel-media-stack-binAUR, libva-headlessAUR) (make)
- libvdpau (make)
- libx11 (libx11-gitAUR) (make)
- libxdamage (make)
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR) (make)
- libxrandr (libxrandr-gitAUR) (make)
- llvm-minimal-gitAUR (make)
- meson (meson-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- python-mako (make)
- python-packaging (make)
- python-ply (make)
- python-pyaml (make)
- rust (rust-nightlyAUR, rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rustup-stubAUR, rustup) (make)
- rust-bindgen (make)
- spirv-llvm-translator-minimal-gitAUR (make)
- spirv-tools (spirv-tools-gitAUR) (make)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-selinuxAUR, systemd-libs-gitAUR, systemd-libs-fmlAUR) (make)
- vulkan-icd-loader (vulkan-icd-loader-gitAUR) (make)
- wayland-protocols (wayland-protocols-gitAUR) (make)
- xcb-util-keysyms (make)
- xorgproto (xorgproto-gitAUR) (make)
- opengl-man-pages (optional) – for the OpenGL API man pages
Required by (1205)
- 0ad-data-git (requires mesa) (make)
- 0ad-git (requires mesa) (make)
- abuse (requires mesa) (make)
- actionfps-client (requires mesa)
- actionfps-client (requires mesa) (make)
- actionfps-common (requires mesa) (make)
- actionfps-server (requires mesa) (make)
- adom-noteye (requires mesa)
- aegisub-git (requires mesa) (make)
- aegisub-japan7-git (requires mesa) (make)
- aegisub-ttools-meson-git (requires mesa) (make)
- aegisub-wangqr-git (requires mesa) (make)
- aio-remote-neo (requires mesa)
- airshipper (requires vulkan-driver) (optional)
- alchemy-viewer-git (requires mesa)
- alephium-desktop-wallet-bin (requires mesa)
- alephone (requires mesa) (make)
- alephone-git (requires mesa) (make)
- algodoo (requires mesa)
- Show 1186 more...
Sources (1)
Lone_Wolf commented on 2021-10-09 12:36 (UTC)
xenu commented on 2021-09-14 09:11 (UTC)
clover patch has also been commited now: https://cgit.freedesktop.org/mesa/mesa/commit/?id=d4f7337d14eb8c135a9a89dcd0e01fc93214a927
Lone_Wolf commented on 2021-09-13 12:33 (UTC)
Thanks for the alert, Xenu.
Patch edited & renamed, working on lib32-mesa-minimal-git now. .
xenu commented on 2021-09-13 09:07 (UTC)
MR 12715 has been commited to main: https://cgit.freedesktop.org/mesa/mesa/commit/?id=09cf2584bdf2184a67115b4e36038bba9f3e0ff1
Though this only fixes "src/amd/llvm/ac_llvm_helper.cpp". Patching "src/gallium/frontends/clover/llvm/codegen/common.cpp" was not part of this MR.
Thank you for your work Lone_Wolf.
Lone_Wolf commented on 2021-09-08 12:02 (UTC)
Patch as posted by xenu applied.
Thanks for creating it.
xenu commented on 2021-09-08 04:34 (UTC)
Created a short patch for current build issue with llvm14 (based on https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12715)
--- a/src/amd/llvm/ac_llvm_helper.cpp
+++ b/src/amd/llvm/ac_llvm_helper.cpp
@@ -60,7 +60,7 @@
llvm::Argument *A = llvm::unwrap<llvm::Argument>(arg);
llvm::AttributeList AS = A->getParent()->getAttributes();
unsigned ArgNo = A->getArgNo();
- return AS.hasAttribute(ArgNo + 1, llvm::Attribute::InReg);
+ return AS.hasParamAttr(ArgNo, llvm::Attribute::InReg);
}
--- a/src/gallium/frontends/clover/llvm/codegen/common.cpp
+++ b/src/gallium/frontends/clover/llvm/codegen/common.cpp
@@ -233,8 +233,8 @@ namespace {
}
} else {
- const bool needs_sign_ext = f.getAttributes().hasAttribute(
- arg.getArgNo() + 1, ::llvm::Attribute::SExt);
+ const bool needs_sign_ext = f.getAttributes().hasParamAttr(
+ arg.getArgNo(), ::llvm::Attribute::SExt);
args.emplace_back(module::argument::scalar, arg_api_size,
target_size, target_align,
until that MR gets added.
xenu commented on 2021-07-10 06:37 (UTC)
I had an issue with opengl games freezing after a short time and causing a GPU reset (Radeon 6900XT). Same game run with zink worked fine. Downgrading llvm/clang to version 12 and rebuilding this package resolved the issue. Anyone else run into this?
Lone_Wolf commented on 2021-07-05 13:35 (UTC)
Depends on which functionality you need.
-
libunwind is for debugging
-
lmsensors adds graphics related sensors to lmsensors database
-
gallium-opencl enables opencl through libclc, but mainly works on polaris (like RX 580) and earlier cards.
If you feel you don't need / want that functionality, you can disable them and simplify dependencies a bit .
amoka commented on 2021-07-04 19:59 (UTC)
Oops! you're right. I cloned that one instead!
Thanks for maintaining this really! Now I want to go more minimal with only AMD stuff, should I only edit the vulkan-drivers
and gallium-drivers
or are there extra stuff to modify in PKGBUILD as well?
Lone_Wolf commented on 2021-07-04 09:41 (UTC)
This package has a makedepend on llvm-minimal-git , which conflicts & provides clang, compiler-rt and llvm .
It should refuse to build if any other llvm/clang version is present .
Are you use you were using this package and not https://aur.archlinux.org/packages/mesa-minimal+-git ?
(there's a + in its pkgname)
Pinned Comments
Lone_Wolf commented on 2023-05-22 12:07 (UTC) (edited on 2024-09-06 21:16 (UTC) by Lone_Wolf)
Build order
N.B. these packages are closely tied together, make sure you build all of them in a short period of time (worst case on my system is around 3 hours) .
Build frequency
I aim to build everything (including the lib32 part) atleast once a week.
How often you build this is a personal choice, but once a month is in my opinion the absolute minimum .
In that timeframe mesa will have seen almost 1k commits, llvm/clang gets more.
Lone_Wolf commented on 2021-01-22 18:36 (UTC) (edited on 2021-01-22 18:39 (UTC) by Lone_Wolf)
Why does this package hard depend on llvm-minimal-git ?
performance
archlinux repo packages are build with
-march=x86-64 -mtune=generic
which works on lots of machines but makes limited use of modern processor capabilities. For many packages this has little impact, but with llvm my experience is different.My local builds for llvm / mesa are done with
-march=native
and this has a noticeable effect on their performance.How big the benefit of this is depends heavily on the exact hardware you use. Worse, the software setup also impacts this. The only way to find out if it benefits your system/software setup is to try it out yourself.
easier maintenance and troubleshooting
Since i started my first mesa trunk package late in 2010 I have maintained versions without any llvm, one llvm implementation, split versions, singular versions, versions supporting multiple llvm implementations , switch from libgl hacks libglvnd to allow mesa & nvidia to cooperate etc.
Depending on one llvm variant in a non-splitted singular version results in a simple PKGBUILD that is easy to maintain.
Troubleshooting is also much easier if maintainer uses the same llvm variant as users.
If people feel those reasons are not good enough to hard depend on llvm-minimal-git , maybe I should transfer ownership .
Lone_Wolf commented on 2021-01-09 15:02 (UTC)
Why does this exist ?
Basically mesa/mesa-git build almost everything they can build.
This package tries to build just enough so everyone can use it, but disables older and/or unused components.
Check https://bbs.archlinux.org/viewtopic.php?id=261629 for a discussion about this package.