Repository navigation
Sync fxceless d510ee4: VICTORY_DXC resolved to a full path before loading - #172
Merged
Merged
Conversation
`LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR` searches the loaded module's own folder, which the loader can only do for a fully qualified path; a relative `VICTORY_DXC=.\sdk` passed `is_file` and then failed to load, so the fallback still had no compiler. The path is made absolute first. Under Wine with its builtin compiler (`WINEDLLOVERRIDES=d3dcompiler_47=b`) the test's shader is refused by the system compiler (`0x80004005`) and DXC compiles it: a container with a root signature and a digest, taken by the assertions. (`cargo xwin test -p victory-gpu --lib dxc` under GE-Proton11-14: 3 passed, with dxcompiler.dll/dxil.dll from the tool's files.) (cherry picked from commit 04c804e)
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
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.
The DXC fallback for our own HLSL is already in
main, but itsVICTORY_DXClookup is not:LOAD_LIBRARY_SEARCH_DLL_LOAD_DIRsearches the loaded module's own folder, and the loader can onlydo that for a fully qualified path. A relative
VICTORY_DXC=.\sdkpassedis_fileand then failedto load, so the fallback still had no compiler — which under Wine/Proton means no indirect-argument
clamp (every indirect execution dropped), no card compare, no depth-plane twins.
The path from
VICTORY_DXCis now made absolute (std::path::absolute) before it is tried.On Windows nothing changes.
Credit: ours (pablogonz12) from the fxceless-fork sync branch; the rest of that branch's DXC work
(
dxc.rs,host::compileandindirectrouting) is already inmain.Gates:
cargo xwin clippy --target x86_64-pc-windows-msvc -p victory-gpu --all-targets -- -D warnings: clean.cargo xwin test -p victory-gpuunder GE-Proton11-14, Wine's builtind3dcompiler_47forced(
WINEDLLOVERRIDES=d3dcompiler_47=b),VICTORY_TEST_ADAPTER=hwon the RADV card:dxc::3 passed, 0 failed (0 skipped).cargo xtask policy: 240 files ok.Not tested in a game run.
Summary by CodeRabbit