@loathingkernel A suggestion for the license, use Zlib instead zlib/libpng :
https://spdx.org/licenses/Zlib.html
https://opensource.org/license/zlib
Maybe for the next release.
| Git Clone URL: | https://aur.archlinux.org/dxvk-mingw.git (read-only, click to copy) |
|---|---|
| Package Base: | dxvk-mingw |
| Description: | Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine, MingW version |
| Upstream URL: | https://github.com/doitsujin/dxvk |
| Licenses: | zlib/libpng |
| Conflicts: | dxvk |
| Provides: | dxvk |
| Submitter: | loathingkernel |
| Maintainer: | loathingkernel |
| Last Packager: | loathingkernel |
| Votes: | 14 |
| Popularity: | 0.156862 |
| First Submitted: | 2019-12-16 17:34 (UTC) |
| Last Updated: | 2026-10-02 13:58 (UTC) |
@loathingkernel A suggestion for the license, use Zlib instead zlib/libpng :
https://spdx.org/licenses/Zlib.html
https://opensource.org/license/zlib
Maybe for the next release.
@ChrisTX
violates shellcheck rule SC2206. Basically, doing this produces very weird results in bash in many cases.
Cases we do not care about here to be clear. The problem shellcheck describes happens with spaces, Both -march and -mtune are unspaced arguments with = as a separator, there is no splitting happening here. Furthermore later on we are looking to split at = to assign them to the named array. Shellcheck is technically right, but it is irrelevant in this case given what this is trying to filter.
@ChrisTX
You're wrong about the licensing needing to be custom:zlib. Arch Linux uses SPDX license identifiers. Zlib is part of the SDPX license list, so just Zlib can be listed.
Two points:
the license() should be custom:zlib, see here.
This line in the PKGBUILD:
local -a split=($CFLAGS)
violates shellcheck rule SC2206. Basically, doing this produces very weird results in bash in many cases. I'd recommend just simplifying the entire block instead into this:
local -rA flags=(
[march]="nocona"
[mtune]="core-avx2"
)
local -a tuneflags
for flagname in "${!flags[@]}"; do
[[ $CFLAGS =~ -$flagname=([^ ]+) ]]
tuneflags+=("-${flagname}=${BASH_REMATCH[1]:-${flags[$flagname]}}")
done
CFLAGS="-O3 ${tuneflags[*]} -pipe -mno-avx"
CXXFLAGS="-O3 ${tuneflags[*]} -pipe -mno-avx"
This is faster, shellcheck clean and easily extendable as well as it would just take changes to the flags array.
With that all it took to build 3.0 for me was bumping the pkgver to 3.0.
Why is it not recommended to use -march=native? Why is AVX bad?
I want to use -march=rocketlake and -mtune=rocketlake for example. I'd really like to know.
Thank you for the clarification @loathingkernel
I know some projects set a default optimization level and I agree that using developer's/upstream preference makes the most sense!
I feel genuinely blind, where does DXVK set -O3 optimization level as the default?
@GrabbenD no, because this package builds Windows binaries through cross-compilation. Some compiler and linker options from makepkg.conf are not supported by MingW. So this package cannot use any compiler/linker options from it.
At the same time, because it is meant to be loaded by Wine, certain combinations will interfere with that. As such this package inherits only -march from makepkg.conf at this moment. -O3 is the default from DXVK and that is why it is forced instead of -O2
How come this package forces O3? Isn't it more intuitive to use user's /etc/makepkg.conf (like march=native)?
@reteo you can edit the pkgbuild and replace the first checksum with 'SKIP'
Is there anything I can do to fix this, or should I wait for an update for pacman?
Pinned Comments
loathingkernel commented on 2019-12-16 19:48 (UTC) (edited on 2019-12-16 19:49 (UTC) by loathingkernel)
This package contains three patches which are not applied by default. Feel free to read the documentation inside the PKGBUILD on what they do and how to enable them.
Don't report issues with these patches enabled to the dxvk creator before posting here. If you do, please be aware that they will probably close your issue nevertheless.