Repository navigation
Recompiler: DXC arguments come from one public function (arguments) - #1956
Draft
sombraSoft wants to merge 1 commit into
Draft
sombraSoft wants to merge 1 commit into
sombraSoft wants to merge 1 commit into
Conversation
compile_here built DXC's argument list inline (entry, profile, HLSL 2021, -O0 above 8 MB of HLSL and -O1 above 1 MB, then the caller's). arguments() returns that list, so xcl shaders --explain can run dxc.exe with exactly the arguments a title's compile uses. No change in what DXC is given. xcl-dev#1529 makes the same function (private, plus -disable-lifetime-markers); the two merge by keeping its body.
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
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.
Part of #1269; used by #1957.
compile_herebuilt DXC's argument list inline.dxc::arguments(src_len, entry, profile, extra)returns it, soxcl shaders --explain(#1957) can rundxc.exewith exactly the arguments a title's compile uses. No change in what DXC is given.#1529 makes the same function (private, plus
-disable-lifetime-markers); the two merge by keeping #1529's body and making itpub.What is in it
Recompiler: DXC arguments come from one public function (arguments)–crates/xcl/src/gpu/recomp/dxc.rs, with a unit test of the size levels and the caller's arguments going lastTested
cargo test --workspace --no-fail-fast -- --test-threads=4on a7217a4: 976 passed, 0 failed, 45 ignoredSKIPPED(all from existing tests): 18 × no wave64, 1 × no heap windows, 1 × cannot disable the driver cache (Developer Mode off), 3 × per-lane form refused (f16 / VOP3 modifiers)Regression run
main:
this PR (a7217a4):
Not tested
AI use