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.
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.
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.
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.
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!