GPU, HLE, loader and shader: 14 bug fixes that apply cleanly to main #460
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/460"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by zocram4cc on 2026-11-27T12:36:43Z.
Fourteen bug fixes cherry-picked from a third-party Proton/RADV port (zocram4cc/victory-linux-perf,
main) onto126acb35. They apply cleanly one by one; original authors and commit messages are kept.What they are: GPU stability (query heap, CPU snapshot retry, 4 KiB texture alignment, APU heap use-after-free, command-queue release use-after-free, DirectStorage out-pointer, loader DLL case and
clzero-loop decoding, gamepad output), plus five shader fixes (helper-lanev_readfirstlane, always-true/false float compares, gfx10_g16gradient packing, an AMD compiler crash, a pos4 export).Authors: davutsimsekk, avt0m4t, AscilCH (×3), Peppacodes (×2), Vax, mynzjerko, libslibslibslibslibslibs.
Provenance: curated from the RYUKI-7900XT / LibsMQG hle-d3d12-7900xtx fork line and contributor PRs; none of the fourteen is in
mainor in any open PR I could find (checked the open list against each commit).One default-on behaviour change, stated plainly: "GPU/resource: preserve 4 KiB texture alignment" (
ce422300, AscilCH) changes how the title spaces its small textures — 4 KiB alignments are kept instead of being raised to 64 KiB inGetResourceAllocationInfo(2). It fixes the contradictory allocation info and the unaligned MSAA sizes that caused it, but it does move the title-memory layout. Our own Proton tree can restore the old layout withVICTORY_SMALL_ALIGN=0(default = 4 KiB kept). We have not measured this fix in isolation — in our runs it always shipped with other switches — so treat the layout change as unmeasured, and drop just this commit if you want the old behaviour.Testing — honest: this port applies cleanly to
maincommit by commit. It has NOT been compiled or run by the submitter (Linux, no Windows target, no game runs in this environment), so treat CI as the gate. No commit adds an environment variable, changes a default, or touches the shader translator version; every behavior change is a bug fix with its own tests inside the commit where the original added tests.AI-assisted selection/verification (cherry-pick dry-run, author attribution, redundancy check); all code is the original authors'.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T12:49:13Z.
Two things I noticed while checking this against the Wine tree.
b1d8db01,first_lane()already returns a pixel helper lane’s own value by default. The extra selection after that call repeats the same work and bypassesVICTORY_HELPER_OWN=0. Is there a case the existing path misses?TRANSLATOR_VERSION = 1by default. A new source digest records that an entry is old, and normal runs still serve it unless refresh is enabled. The gradient and compare changes should bump the translator version so existing installs pick them up.Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T12:52:12Z.
I ran Peppacodes’s constant float compare test on the Wine branch. All 16 f16 and f32 cases passed on an RX 7900 XT with RADV 26.3.1 and vkd3d-proton
71cae091b06571e. The Wine port includes the cache version bump. Wine PR #8Imported from avatarmanz/VIctory-7900XTX. Originally posted by GiovanniFadanelli on 2026-11-27T14:24:32Z.
Superseded by #469: the same 14 commits plus three fix-ups (a test-isolation fix for the APU use-after-free test, the readfirstlane select obeying VICTORY_HELPER_OWN, translator version 1 → 2), built and tested on Windows with an RX 9070 XT. Results are in that PR.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.