Repository navigation
Fix NVIDIA Ada Lovelace (RTX 4060) D3D12 compatibility, 2s TDR submissions, and 16 GB host OOM - #1076
legayclightning22 wants to merge 26 commits into
Conversation
|
Full workspace run at Environment: Windows 11 Pro build 26200 x64, Intel Core i5-12400F, 64 GB RAM, NVIDIA GeForce RTX 5070 Ti (Blackwell, WaveLaneCountMin = Max = 32, mesh shaders) driver 32.0.16.2124, Rust 1.98.1 (pinned by (The baseline The five new One skip line in the run is the usual benchmark/ignored marker, not a capability gap. Not tested: the title itself (no game data here, and per the README its world can hang the adapter), RDNA2/RDNA4 and Intel GPUs, a release build. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the workspace suite, wrote this report; no game data was used. |
|
We checked the texture changes through Checking the default view after resource creation would catch this case. The probe also selected R11G11B10_FLOAT for RGB9E5 and BGRA8 for BGRA4444. The texture commits do not add staging conversions for those encodings. A patterned upload and shader readback would check the channel values for each replacement. Our comparison ended at descriptor preparation and did not measure title output. |
|
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at b62e2a3: Tested with AI assistance (Claude). |
…llot reads and readfirstlane
…ive mask dwords algebraically
|
Tested head
I can't check the TDR or the host memory changes without the game. AI-assisted (Claude Code). |
|
Thank you for this, @legayclightning22! Many pull requests here are still waiting to be merged, so I've ported three of its commits to 465d6a0eac/AgentRecompVI, a VIctory fork where AI agents review and merge each other's work: https://github.com/465d6a0eac/AgentRecompVI/pull/36. You're credited as the author there. This stays the original. Test results
|
|
Thank you both for running hardware verification across different NVIDIA architectures and driver stacks—these reports are super helpful. Direct Follow-Up on Review Findings
Architectural Bottlenecks & Subtle Edge Cases Observed on RTX 4060 (8 GB) + 16 GB Host RAMWhile bringing Series X mode from boot/menus through loading into world entry (
Current Focus (Next Follow-Up PR)To keep PR #1076 clean, scoped, and easy to merge, the next milestone is being tracked separately:
Let me know if you'd like any part of this PR split or adjusted for merge! |
|
Thank you all for the multi-GPU verification and feedback—seeing this tested across AMD RDNA3 (
Next Bottlenecks Being Investigated (Follow-Up Work)Your RTX 3070 Ti world run matches what I am seeing on my RTX 4060 (8 GB) + 16 GB RAM setup, so the next focus is isolating the two remaining world blockers separately without bloating PR #1076:
Happy to keep PR #1076 focused on the current 17 commits or adjust anything needed for review! |
The capped view heap takes Marvisak#1523's largest size the host accepts and keeps Marvisak#1133's layout (the last slot null for clamped indices). The Marvisak#1076 format commits are reverted in favour of Marvisak#1523's host-queried widening. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@legayclightning22 — saw item 3 in your PR ("16 GB host OOM" on RTX 4060 8 GB + 16 GB RAM). That host texture commit / 8 GB VRAM exhaustion is also addressed by PR #1296 ( |
|
Thanks for the pointer, @antikohza—and thank you again to everyone who has been testing and porting these commits across forks (
Follow-Up PR Plan (
|
|
Measured offline as part of #1247. I merged this branch onto main +230 programs validate, and 5 mesh programs that validate on main stop translating. All 5 now fail with: The gain is clear. The 5 look like a side effect of the LDS changes: a check that is now stricter than the programs' actual LDS use. They may be worth a look before merging. Offline counts only; no program names or data, per the asset policy. |
|
Automated triage for the maintainers. This pull request still does not merge cleanly into On your reply: splitting this into small single-topic PRs, each with tests and hardware or spec evidence, is the right way forward. Please close this one when you have finished taking pieces from it. Generated by Claude Code |
|
@Marvisak Thanks so much for looking at this and acknowledging the PR — really appreciate it! I've been actively working nonstop on the follow-up world-TDR and indirect draw fixes over in #1799 ( |
|
@Marvisak Thanks for the detailed triage breakdown on You're also right on the single-GPU caveat: tuning around behavior seen on one RTX 4060 / 16 GB setup shouldn't turn into broad or risky global assumptions like capping For now, I'm shifting my active focus to |
Summary
README.mdcurrently notes testing on a single AMD RX 6700 XT setup. This PR resolves several NVIDIA D3D12/DXIL compatibility issues and 16 GB host commit bottlenecks encountered when running Series X mode into the world on an NVIDIA RTX 4060 (8 GB VRAM, Ada Lovelace) and 16 GB system RAM.What This PR Fixes
med3NaN Handling on NVIDIA (victory-shader):pred::UNO+ floatselectinmed3lowering (crates/victory-shader/src/emit/lower.rs) with IEEE-754 bit-level NaN checks (pred::IUGT) and an integer-spaceselectbeforeas_float, preventing NVIDIA's DXIL compiler from foldingmed3intoFMNMXunder fast-math rules.emit::valu_tests::v_med3_f32_matches_rdna2_with_nan(andf16) on Ada Lovelace hardware (91/91shader tests passing).victory-gpu):HostList(with its prelude) individually inHost::execute(crates/victory-gpu/src/host.rs) instead of batching 30–34 command lists (1.3+ s) into a singleExecuteCommandListscall, avoiding Windows' ~2.0 s TDR timeout (DXGI_ERROR_DEVICE_HUNG / 0x887A0006) on world entry and breaking immediately on device removal.victory-shader,victory-gpu):Bools::memo(MAX_MEMO = 1 << 18), loweredMAX_NODES(1 << 19), and short-circuitedBools::iteonoverflow(crates/victory-shader/src/structure.rs) to eliminate35.6 MB(2^21-bucket) hash-table OOM aborts during world shader structurization.GlobalMemoryStatusEx(crates/victory-gpu/src/pipeline/make.rs) on<= 18 GiBhosts and boundedshadow::POOL(crates/victory-gpu/src/shadow.rs) to prevent commit exhaustion.victory-gpu):934,464mirrored bindless slots while maximizing dynamic headroom up to NVIDIA's1,000,000CBV/SRV/UAV heap cap viacapped_layout(crates/victory-gpu/src/descriptor/host.rs).D3D12_FEATURE_DATA_FORMAT_SUPPORTinhost_texture(crates/victory-gpu/src/resource.rs) to promote/sanitize unsupported typed RTV/UAV formats (67,86,115) while preservingRTV | UAVflags on typeless sRGB/depth resources (format: 27).victory-shader):WaveSize(64)and emitted explicitdx.op.barrier(GroupMemoryBarrierWithGroupSync) around LDS accesses for uniform single-wave64 compute shaders without cross-lane wave ops (crates/victory-shader/src/emit/lower.rs), allowing Ada Lovelace (wave32-only) GPUs to compile and run them instead of rejecting them with0x80070057.Impact & Progress Change
v_med3_f32NaN test failure,35.6 MBhost OOM during world shader compilation,0x887A00062-second TDR timeouts on 30+ list world batches, and0x80070057rejections on wave64 LDS compute shaders and non-RTV/UAV formats.frame 1569+) with zero0x887A0006/0x887A0001GPU device removals and zero0x80070057texture format rejections.Currently In Progress & Upcoming Follow-Up Work
To keep this PR focused and easy to review, the next milestones are being developed separately and will follow in subsequent PRs:
WaveSize(64)compute emulation on wave32 (victory-shader): Emulating 64-lane ballots/shuffles (v_mbcnt,ds_swizzle,v_readlane_b32, DPP) across pairs of wave32 sub-waves using a groupshared scratchpad +GroupMemoryBarrierWithGroupSyncso the remaining ~93 refusedWaveSize(64)world compute passes execute on NVIDIA GPUs.victory-gpu): Pooling4 MiBHostList::scratchupload chunks across list resets to further reduce idle commit usage on 16 GB RAM systems.Test Plan & Policy Verification
cargo test --workspace --locked— all unit/integration tests pass (includingvictory-shader91 passedandvictory-gpu52 passedon hardware RTX 4060).cargo clippy --workspace --all-targets --locked -- -D warnings— passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (153 files ok; zero game assets, dumps, orvictory.tomlincluded).