GPU, HLE, loader and shader: 14 bug fixes, built and tested on Windows (replaces #460) #469
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/469"
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 GiovanniFadanelli on 2026-11-27T14:22:18Z.
Replaces #460 (zocram4cc). The same 14 cherry-picked commits with their original authors (davutsimsekk, avt0m4t, AscilCH ×3, Peppacodes ×2, Vax, mynzjerko, libslibslibslibslibslibs), plus three fix-ups found by building and testing them:
heap_bytes_retains_allocation_across_apu_freewas the onlyApuAlloctest withoutCONTEXT_TESTS. AfterApuFree, a parallel test could take the same APU address, soApuMapApuAddress(apu).is_null()failed now and then (1 run in 8 here; also seen in a parallel workspace run on klbf-lab beta). CI runs tests in parallel.VICTORY_HELPER_OWN(zocram4cc, cherry-picked). Answers the review point that the new select bypassedVICTORY_HELPER_OWN=0, which the shader cache keys on. The select now follows the switch, and it still covers the two-host-wave exchange path, wherefirst_lane's result can come from the other half.TRANSLATOR_VERSION's own comment asks for a bump. Without it, existing installs keep serving cached translations (the other review point).One default-on behaviour change, as in #460: "GPU/resource: preserve 4 KiB texture alignment" keeps 4 KiB alignments in
GetResourceAllocationInfo(2)instead of raising them to 64 KiB, so the title spaces its small textures as on the console.resource::tests::sizes_cover_every_mipcovers it. Not measured in game.Testing (Windows 11, RX 9070 XT, native MSVC toolchain 1.98.1; base
126acb35vs this head)126acb35cargo check -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --all-targetscargo test -p victory-shader(lib, one test skipped, see below)--test-threads 1--test-threads 1cargo check -p victory-gpu --features diagnostics --all-targetscargo test --workspace --all-features -- --test-threads=1: victory-gpu-D warnings(default and--all-features,--keep-going)transmutelints, pluslist.rsopenandwatch.rstotalsin victory-gpu, as #409 fixesRed first: 11 of the 12 new or extended tests fail with their fix reverted and pass with it (for the queue use-after-free and the 16-bit gradient fix, by a hand revert of the fix itself). The exception is the APU heap test: its use-after-free half cannot be reverted without breaking the test's build, and its overflow assertion cannot fail at offset 0. For example:
sizes_cover_every_mipleft: AllocationInfo { size: 352256, alignment: 65536 },release_waits_for_release_held_before_freeing_waiting_queue"queue::release freed queue while release_held lock was held", andfloat_compares_that_are_always_false_or_trueWARP "device removed". Not red-first-able: the snapshot retry and the helper-lane readfirstlane commits carry no test.Pre-existing on main and not from this PR: CI is red on every main run, both clippy steps fail (fixed by #409), and on an RX 9070 XT (RDNA 4)
emit::size_tests::the_record_count_of_a_structured_buffer_read_by_indexcrashes the shader test process with an access violation (base and head alike, which endscargo test --workspaceearly). That is the RDNA 4 compiler crash #55 addresses: on #55's head (whose base is the same126acb35) the test passes on this card.Not verified: in-game behaviour (no game runs) and the layout change in game.
AI-assisted (build, tests, red-first, the three fix-ups); the code of the 14 is the original authors'.
🤖 Generated with Claude Code
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.