Repository navigation
Conversation
…anes on 32-lane GPUs
oceansde012
pushed a commit
to oceansde012/victory-gta6
that referenced
this pull request
Nov 25, 2026
GPU: VICTORY_* switches set to 0 are off (fxceless#610) (cherry picked from commit e82a6ad)
|
RX 7900 XTX (RDNA3), Windows 10 + #402 for SM 6.6, main |
PiloteCode
pushed a commit
to PiloteCode/victory-fork
that referenced
this pull request
Nov 25, 2026
GPU: VICTORY_* switches set to 0 are off (fxceless#610)
PiloteCode
added a commit
to PiloteCode/victory-fork
that referenced
this pull request
Nov 25, 2026
…ull requests and the host FidelityFX on our layer; our translator, title memory and copy-back kept 319 commits past ffe310e, merged onto wave4. Most of its runtime pull requests were here already, picked one by one (fxceless#653 and fxceless#716, prhle, offpr): where a change arrived both ways, the copy this branch had is kept (net, audio, xg, runtime, lifecycle with its one stand-in window (#1677), files, kernel, xasync, xgamesave, xmem, gameinput, the loader's crash, clzero and publish code, the pipeline cache, #1658's staging clamp). The rest is the resolution first made on wave2 (offm-on-wave2, ab1d525), carried over: - crates/victory-shader: ours (every conflict --ours). Kept from theirs only what landed whole: fxceless#661 SP3 text operands, fxceless#1021 s_atc_probe's immediate, #1636 FLAT offsets. Reverted where half landed: fxceless#1180, range.rs, fxceless#617's bench, #1337's sampler, ACCC, SOURCE_HASH, and new test files whose mod lines are in conflicted files. The rest is to be ported on its own. - victory-gpu: ours plus the official units taken, each from its own diff: host.rs (fxceless#615 switch=0 is off, fxceless#1082 TDR log, #1626 swap-chain retries throttled), descriptor/host.rs (fxceless#974, its walk no longer cut at 2^18 steps by ours), descriptor.rs (fxceless#52: a mirror holds the heaps' lock while it uses the heap, a read lock on this branch's RwLock, and so does our re-mirror of waiting slots), resource.rs (fxceless#52, fxceless#504 depth/stencil footprints, #1390 A8), pipeline/host.rs (fxceless#618), pipeline.rs (a stream subobject past its end not read), capture.rs (fxceless#615, fxceless#1146, a D24 depth plane dumped as depth), frame.rs (fxceless#174, with our late-wait shortcut inside the tick reservation), device.rs (fxceless#928, feature queries 7/8/23), list.rs (#1446, fxceless#52), external.rs (host FidelityFX, VICTORY_FIDELITYFX_DIR, off unless set), switch.rs, tdr.rs, and the small PRs (fxceless#553, #1562, fxceless#270, fxceless#153, #1453, #1204, fxceless#1173, #1206, fxceless#474). - Not taken, ours kept: title memory at raw addresses (27c3dc9, 0f63757, 6d021fe: their memory.rs and Upload), page marks (cd94d35, 940d32f: with our shaders every write through a view would be lost), bindless.rs and the change journal (c75fdba), root views and retirement at execute end (d71c388: unsafe with flights in the air), rectangle GS and table constants in place (683ad7a), twins and shared host textures (13bbd6f), heap copies (86a5ed6, bacb06a), the shader cache key, warm-up, pipeline queue and library (c47b529, 9c58a1c, fxceless#1000, #1660), #1510, #1635, #1246, fxceless#322, #1322, fxceless#669, fxceless#197 (turned down by prhle), #1726 (ours waits longer; its test added), the console upscaler's UAV clears. `translate --cache` is `--warm all` (with the adapter probe); the pipeline pre-build is not in. - Also taken: the shader pack and the database's effects (shader-info), the startup archive check (fxceless#12, on this branch's KnownBuild with its patches), and the runtime PRs not here yet (FidelityFX's config and module). - The title is not named in the merged-in comments (4e17478). Details, the overlaps and what to watch: README, "The official repository, 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 and extends
ds_bpermute_b32lowering for console wave64 shaders running on 32-lane GPUs (NVIDIA / wave32):group <= 32OOB lane reads: previously passedsrcin0..=63directly todx.op.waveReadLaneAt.i32on a 32-lane host wave (UB / wraps mod 32 instead of returning0for lanes32..63). Now maskslane = src & 31and selects0whensrc >= 32.ds_bpermute_b32(group > 32): allocates 64-dword-per-console-wave LDS scratch (checking D3D12's 32 KiB limit with 1 dword reserved forwave_base), exchanges all 64 lanes viastore -> group_sync -> load -> group_sync, selects0for missing lanes in partial tail waves (!group.is_multiple_of(64)), and hooks intoneeds_every_lane/widenwhen called inside a per-lane branch.v_readlane_b32(maskssrc & 31underlocal && local_any; refuses cleanly underlocal && !local_any).Verification:
cargo test -p victory-shader --offline: 218 passed, 0 failed (4 newwave64_testsvalidated withdxil.dlland executed on hardware GPU covering[32,1,1],[64,1,1],[128,1,1],[96,1,1], per-lane branch widening, and 32 KiB LDS overflow refusal)cargo test -p xtask --offline: 4 passed (asset policy check ok)cargo clippy -p victory-shader --all-targets --offline -- -D warnings: 0 warnings