protonscr

AVX works (-march=tigerlake) with LLVM/Clang build

dxvkclosed build
doitsujin/dxvk#5516 · opened 2026-02-18 by NTULINUX · updated 2026-05-14 · 4 comments · github
NNTULINUX 2026-02-18 github

Greetings!

I can confirm that Clang handles the stack alignment issue with AVX-enabled builds but GCC does not.

Using the following:

1.) https://github.com/mstorsjo/llvm-mingw/releases/tag/20251216

2.) Removing the AVX check in util_bit.h to allow compilation

AVX does indeed work without a segmentation fault.

I recommend adding a check to util_bit.h to explicitly check for Clang and allowing the build on AVX-enabled platforms.

Gemini was right!

Vv-fox 2026-03-01 github

Would be nice to have an easy way to use clang (which is system-default for my Gentoo build) for dxvk & vkd3d-proton builds in general, like wine does, so mingw could be removed entirely. AVX issue seems like gcc/mingw -related anyway.

NNTULINUX 2026-03-04 github

As a hardcore Gentoo guy, you can just patch the build-win* files to use Clang instead:

https://github.com/NTULINUX/dxvk/commit/87384fe5e99e8397dbce47366f3143f2dc15e37e

Put it in the "files" folder with the ebuild and then modify the ebuild using the PATCHES variable.

Vv-fox 2026-03-04 github

As a hardcore Gentoo guy, you can just patch the build-win* files to use Clang instead:

This still needs i686-w64-mingw32-clang which doesn't exist in Gentoo. wine uses bare clang somehow.

NNTULINUX 2026-03-04 github

Yeah I've built Wine manually and mingw doesn't seem needed for that.

I just finished working on this:

https://github.com/NTULINUX/llvm-mingw

It's pretty much a full re-write of the original tree and I took a lot out just to support x86 platforms and many other improvements. I've been building DXVK with that.

Nothing extracted yet.