Repository navigation
Conversation
Owner
Author
|
Upstream PR xcl-dev#942 was closed or merged. |
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.
Fixes xcl-dev#863.
What changed
crates/xcl/src/gpu/rdna2.rs(resolve_far_jumps):far_targetbefore scanning sobranch_targetonly inspects direct branches.S_GETPC_B64/S_ADD_U32+S_ADDC_U32orS_SUB_U32+S_SUBB_U32/S_SETPC_B64) first (returning immediately with no allocation when there are none).far_targetonly when none of the sequence's post-S_GETPC_B64instructions (lo,hi,set) is targeted. Entering atS_GETPC_B64itself still resolves as a direct far jump.crates/xcl/src/gpu/recomp/tests.rs(far_jumps_stay_indirect_when_entered_after_getpc):get,lo,hi, andsetfor both add and subtract forms, verifyingfar_targetand thattranslatekeepss_setpc_b64indirect whens_getpc_b64is bypassed.get,lo,hi, andsetof a second far-jump sequence.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug build, no game data:cargo test -p xcl --lib far_jump: 3 passed, 0 failed.cargo test -p xcl --lib gpu:: -- --test-threads=4: 284 passed, 0 failed, 18 ignored (SKIPPED: no wave64on 2 tests).XCL_ADAPTER=radeon):cargo test -p xcl --lib far_jump: 3 passed, 0 failed.cargo test -p xcl --lib gpu:: -- --test-threads=4: 284 passed, 0 failed, 18 ignored (SKIPPED: no mesh shaderson 2 tests).cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored) and @eizispark (RX 9070 XT).Regression run
scripts/smoke.ps1, 60 s. The blocks are copied unchanged from that comment.main(beaa245):PR (
a527eb3):Not tested
AI use
Mirror of xcl-dev#942 (auto-synced, do not edit).