Repository navigation
[BUNDLE] Four fixes carried from Peppacodes' fork: #762 #764 #765 #832 - #1603
Closed
MamaLeVrai wants to merge 9 commits into
Closed
MamaLeVrai wants to merge 9 commits into
MamaLeVrai wants to merge 9 commits into
Conversation
map_dll lowercased the DLL's name and joined that to the title folder. On a case-sensitive folder (WSL creates them so, and new subfolders inherit the flag) GameLib.dll is not gamelib.dll: is_file() was false and the DLL was skipped without an error, so its imports went to stubs and a title's own LoadLibrary saw "not a title image". The lowercased name stays the key (seen, wanted, the returned list). The file is the name as written or, failing that, the folder's entry that matches it ignoring ASCII case, as the Windows loader ignores case. Test: a case-sensitive temp folder (fsutil setCaseSensitiveInfo, no admin) holding Late.dll, loaded as Late.dll, LATE.DLL and late.dll. Skipped where Windows cannot make such a folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GetProcAddress on one of our pseudo modules returned NULL for a name it does not export, or for any ordinal, without setting the last error. The host sets ERROR_PROC_NOT_FOUND (127), and a caller that builds its failure from GetLastError() got 0, HRESULT_FROM_WIN32(0) being S_OK. Test: a missing name on kernel32 (the host's, for comparison), and a missing name and an ordinal on xgameruntime.dll, each after clearing the last error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RegOpenKeyW and RegOpenKeyExW returned ERROR_FILE_NOT_FOUND for any path below our stand-in for HKLM\...\CurrentVersion\OEM, including a null or empty one. The documented behaviour, and the host's: RegOpenKeyW gives back the key it was passed, RegOpenKeyExW a handle to the same key. Other paths below it still are not found (it has no subkeys). Test: both functions with a null and an empty subkey, on our key and on a host key for comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The case-ignoring fallback took the folder's first entry that matched the name and only then checked it was a file. A folder listed before the file (NTFS lists LATE.DLL before late.dll) made the DLL not found. It now takes the first matching entry that is a file. Found by MichaelSmithAI in Wine on ext4; the same happens on a case-sensitive NTFS folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v_cmp_f_{f32,f16} and v_cmp_tru_{f32,f16} lowered to fcmp false and
fcmp true (predicates 0 and 15). DXC folds those away, so drivers never
see them from it, and WARP removes its device at the first dispatch of
a pipeline that has one ("The GPU device instance has been suspended").
The hardware adapter (RTX 5080) runs them. A removed WARP device stays
removed for the process, so everything after it fails too.
They are false and true whatever the operands, NaNs included (RDNA2
ISA), so they now lower as constants, as the integer v_cmp_f/v_cmp_t
already do. FALSE and TRUE stay in the predicate table, unused.
Found with a sweep of every 32-bit VALU instruction on the hardware
adapter against WARP: all 62 compares now run and agree on both.
Test: float_compares_that_are_always_false_or_true, f32 and f16 with
ordinary and NaN operands, on the hardware adapter and WARP. On main
WARP's dispatch fails with the device suspended.
…ak#764 Marvisak#765 Marvisak#832), verified together Merges the branches fix/title-dll-name-case, fix/getprocaddress-last-error, fix/oem-key-empty-subkey and fix/fcmp-false-true of Peppacodes/VIctory onto main (ffe310e), each with its commits and its author unchanged, no conflicts and no changes of mine. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (347 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
Owner
|
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. See #1434. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Owner
|
Automated triage for the maintainers. Needs rebase. This pull request conflicts with Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four small fixes from one contributor's fork, in one PR. Each was reported as an issue with a branch, a commit, a repro and a test, written when pull requests were still limited to collaborators, and none has a pull request. The branches are merged here as they are, with their commits and their author, onto
main(ffe310e); nothing is changed.What is inside
Peppacodes/VIctory:fix/title-dll-name-case1e24f34,22c3d00Peppacodes/VIctory:fix/getprocaddress-last-errord0662f4GetProcAddresson our pseudo modules setsERROR_PROC_NOT_FOUNDon a miss, as the host's doesPeppacodes/VIctory:fix/oem-key-empty-subkey8e9f9b3RegOpenKeyW/RegOpenKeyExWwith a null or empty subkey under our OEM key open the key itselfPeppacodes/VIctory:fix/fcmp-false-truee04929dv_cmp_f_*andv_cmp_tru_*on floats lower as constants, notfcmp false/fcmp true, which remove the WARP deviceEvery one has its own test (the two loader tests skip where Windows cannot make a case-sensitive folder). The reasoning of each is in its issue.
Notes
v_cmp_f_f64andv_cmp_tru_f64that does what Shaders: v_cmp_f/v_cmp_tru on floats emit fcmp false/true, which removes the WARP device (fix on a fork) #832 does for every float width, so the two overlap in the same arm of the compare lowering and conflict textually; if both land, Shaders: v_cmp_f/v_cmp_tru on floats emit fcmp false/true, which removes the WARP device (fix on a fork) #832'sif op == "f" || op == "tru"is the one to keep.Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)The title was not run. No game data is used or committed.
Re-verify in one go
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code