Package Details: mesa-git 24.3.0_devel.194818.d3429a7e00d.d41d8cd-1

Git Clone URL: https://aur.archlinux.org/mesa-git.git (read-only, click to copy)
Package Base: mesa-git
Description: an open-source implementation of the OpenGL specification, git version
Upstream URL: https://www.mesa3d.org
Keywords: mesa wayland X11
Licenses: custom
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-libgl, mesa-vdpau, opencl-driver, opencl-rusticl-mesa, opengl-driver, vulkan-driver, vulkan-intel, vulkan-mesa-layers, vulkan-nouveau, vulkan-radeon, vulkan-swrast, vulkan-virtio
Submitter: Krejzi
Maintainer: rjahanbakhshi (Lone_Wolf)
Last Packager: Lone_Wolf
Votes: 182
Popularity: 0.37
First Submitted: 2014-06-19 21:33 (UTC)
Last Updated: 2024-09-15 20:40 (UTC)

Required by (1303)

Sources (6)

Pinned Comments

Lone_Wolf commented on 2024-09-10 19:58 (UTC)

removed obsolete options, build now works again.

building opencl clover is disabled for now, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/11863

Those that need opencl should use rusticl instead. Note that rusticl at runtime is disabled by default, see https://docs.mesa3d.org/envvars.html#rusticl-environment-variables for info about enabling it.

Lone_Wolf commented on 2020-04-23 12:26 (UTC) (edited on 2023-03-30 07:04 (UTC) by Lone_Wolf)

Mesa and llvm are closely tied together. Everytime the llvm mesa is built against changes/updates , mesa needs to be rebuilt.

I expect anyone building mesa-git against one of the llvm trunk variants to be able to do that themselves, but atleast some of the people that built against repo llvm don't understand how to deal with such a rebuild.

The rest of this post is meant for those people.

  • Verify if latest PKGBUILD requirements match llvm repo versions.
  • If they don't , post to alert the maintainer of this.
  • DELAY the update of llvm/clang suite and their lib32- counterparts
  • Once the PKGBUILD does match, download it.

Option A - best one

  • run pacman -Syu to ensure your system is in sync with your mirrror server
  • build mesa-git in a clean chroot

see https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot for the official way or https://aur.archlinux.org/packages/clean-chroot-manager for an alternative method.

  • install the newly built mesa-git
  • run pacman -Syu
  • ready

Option B - 2nd best

  • revert to repo mesa
  • pacman -Syu
  • build mesa-git
  • switch from mesa to mesa-git
  • ready

Lone_Wolf commented on 2019-07-09 13:43 (UTC) (edited on 2023-04-18 10:41 (UTC) by Lone_Wolf)

  • choosing which llvm variant to build against

WARNING : aur helpers don't support this method at all. They check .SRCINFO and that doesn't include this variable so it will use the default which is hardcoded to build against repo llvm.

Why would I want to use llvm development versions ?

For full functionality and latest features mesa trunk master needs to be build against llvm trunk master.
If you build against stable llvm things MAY work, but you're likely to lack some features and face stability issues.

Mesa-git uses a custom environment variable MESA_WHICH_LLVM for flexibility.
It has 4 values.
1 : aur llvm-minimal-git
2 : aur llvm-git
3: llvm-git from LordHeavy' unofficial repo
4: llvm from extra repo

I use value 1 95% of the time and set this in ~/.bash_rc .
If MESA_WHICH_LLVM is unset or empty, the default value of 4 (extra llvm) is used.

Lone_Wolf commented on 2018-01-30 14:06 (UTC) (edited on 2023-02-12 11:56 (UTC) by Lone_Wolf)

  • main difference with stable repo package
[extra]mesa is a split package, but aur mesa-git isn't.
Basically with aur mesa-git you get everything in one package, while [extra]/mesa allows you to leave out some parts if you don't want/need them.
Having a single package reduces maintenance and makes switching from stable to mesa-git rather easy, though reverting back to stable can be tricky.
  • meson settings
Those who compare PKGBUILDs will notice I don't use arch-meson, but meson setup.
I disagree with some of the settings made by arch-meson (especially the buildtype and enabling LTO by default) and feel using meson setup is cleaner.
  • how to update

run pacman Syu update non-repo packages for llvm if you use them

build mesa-git, log out , update mesa-git and restart X .

run glxinfo -B to verify basic OpenGL functionality

build lib32-mesa-git

run glxinfo32 -B to verify basic OpenGL functionality for multilib programs

Latest Comments

« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 .. 131 Next › Last »

Lone_Wolf commented on 2022-12-27 12:19 (UTC)

Packages which name ends in -cvs, -svn, -hg, -darcs, -bzr, -git etc are called VCS packages and will always build the very latest commit available regardless of the version shown on the aur page..

The PKGBUILDs for them on AUR are only updated when something fails during building.

lib32-llvm-minimal-git hasn't needed changes to the PKGBUILD for 20 months now and still builds fine.

freddiehaddad commented on 2022-12-26 12:21 (UTC)

Can the multilib (32-bit) verions of mesa-git and llvm-minimimal-git be created from these packages? The separate lib32-mesa-git and lib32-llvm-minimal-git are not current.

Lone_Wolf commented on 2022-12-08 15:29 (UTC) (edited on 2022-12-08 15:30 (UTC) by Lone_Wolf)

Good idea, but you'll probably have to add spirv-llvm-translator and libclc to llvm-git before you can build rusticl.

https://docs.mesa3d.org/rusticl.html

rjahanbakhshi commented on 2022-12-08 12:10 (UTC)

@Lone_Wolf,

Building with intel-clc=enabled and without spirv-llvm-translator, results in

ERROR: Dependency "LLVMSPIRVLib" not found, tried pkgconfig and make

Need to add spirv-llvm-translator to the llvm-git and add dependency to spirv-llvm-translator selectively based on MESA_WHICH_LLVM environment variable. I will do it after adding rusticl

rjahanbakhshi commented on 2022-12-08 10:15 (UTC)

@OroWith2Os,

What commands are you using to build the package?

Can you cd into your aur mesa-git/src directory, run the following commands, and paste the results here?

meson --version

meson setup mesa _build --wipe \
   -D b_ndebug=true \
   -D b_lto=false \
   -D platforms=x11,wayland \
   -D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,iris,crocus,zink,d3d12 \
   -D vulkan-drivers=amd,intel,swrast,virtio-experimental,intel_hasvk \
   -D vulkan-layers=device-select,overlay \
   -D dri3=enabled \
   -D egl=enabled \
   -D gallium-extra-hud=true \
   -D gallium-nine=true \
   -D gallium-omx=bellagio \
   -D gallium-opencl=icd \
   -D gallium-va=enabled \
   -D gallium-vdpau=enabled \
   -D gallium-xa=enabled \
   -D gbm=enabled \
   -D gles1=disabled \
   -D gles2=enabled \
   -D glvnd=true \
   -D glx=dri \
   -D libunwind=enabled \
   -D llvm=enabled \
   -D lmsensors=enabled \
   -D osmesa=true \
   -D shared-glapi=enabled \
   -D microsoft-clc=disabled \
   -D valgrind=disabled \
   -D tools=[] \
   -D zstd=enabled \
   -D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
   -D buildtype=plain \
   --wrap-mode=nofallback \
   -D prefix=/usr \
   -D sysconfdir=/etc

meson configure --no-pager _build

If you're using zsh, try to escape [] characters by prefixing them with \ character like this \[\]

OroWith2Os commented on 2022-12-08 06:27 (UTC)

@lone_wolf I've verified that the version of Meson in my repos is correct, there isn't any mismatch. The specific version is exactly 0.64.1-1.

Lone_Wolf commented on 2022-12-07 09:05 (UTC)

@deemon - ring gfx timeout that are reproducible and tied to one specific application are usually mesa related, but if they are more generic a kernel issue is more fitting. Best option is to Investigate this on forum of the distro you use before filing a bugreport.

@kkartaltepe :

spirv-llvm-translator needs to be linked to a specific llvm version at buildtime (llvm 14 for the current repo version). For it to work with llvm trunk versions they will have to porvide their own spirv-llvm-translator version (as I have done in llvm-minimal-git).

Have you tested what happens if --intel-clc=enabled is added to the build function but spirv-llvm-translator is NOT present ?

kkartaltepe commented on 2022-12-07 03:20 (UTC)

Consider adding a dependency to https://archlinux.org/packages/community/x86_64/spirv-llvm-translator/ and setting --intel-clc=enabled to enable vulkan raytracing for intel cards.

deemon commented on 2022-12-02 18:32 (UTC) (edited on 2022-12-03 10:14 (UTC) by deemon)

Sorry for probably dumb question, but ... is this mesa or kernel or Firefox or what thing fault primarly? Doesn't happen too often, but couple of times a week Firefox manages to crash my entire x11/xfdesktop, so after brief black screen I am back to xfce lightdm login screen (nope, not system restart, just graphical desktop crash ... uptime is still currently 8 days after the most recent desktop crash).

dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:5 pasid:32776, for process firefox pid 831590 thread firefox:cs0 pid 831655)
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:   in page starting at address 0x0000800170c00000 from IH client 0x1b (UTCL2)
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00540C51
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          Faulty UTCL2 client ID: CPG (0x6)
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          MORE_FAULTS: 0x1
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          WALKER_ERROR: 0x0
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          MAPPING_ERROR: 0x0
dets  02 20:20:22 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          RW: 0x1
<snip ... x10 the errors above>
dets  02 20:20:23 Zen kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=504479675, emitted seq=504479677
dets  02 20:20:23 Zen kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process firefox pid 831590 thread firefox:cs0 pid 831655
dets  02 20:20:35 Zen lightdm[954229]: gkr-pam: unable to locate daemon control file

EDIT: aaand today also Brave browser managed the same 🤣

dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:4 pasid:32776, for process brave pid 8050 thread brave:cs0 pid 8065)
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:   in page starting at address 0x00008001146f1000 from IH client 0x1b (UTCL2)
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00441051
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          Faulty UTCL2 client ID: TCP (0x8)
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          MORE_FAULTS: 0x1
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          WALKER_ERROR: 0x0
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          MAPPING_ERROR: 0x0
dets  03 12:11:28 Zen kernel: amdgpu 0000:2f:00.0: amdgpu:          RW: 0x1
dets  03 12:11:29 Zen kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=34131050, emitted seq=34131052
dets  03 12:11:29 Zen kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process brave pid 8050 thread brave:cs0 pid 8065
dets  03 12:11:42 Zen lightdm[52487]: gkr-pam: unable to locate daemon control file