Iter 26: DXGI ALLOW_TEARING immediate present and underwater shader 926c46bab3b86bd6 recovery #11
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T03:38:16Z.
Summary
Ports DXGI
ALLOW_TEARINGimmediate presentation and theLOOPS_OFFwave64 underwater compute shader fallback fromtrustno1-coder/VIctory-NVIDIA(8fc2254), while keeping zero merge conflicts with open PRs#2–#10(note: theplay.rsandhost/menu.rspieces ofb4e1b08/8fc2254are deferred until PR#5merges).crates/victory-gpu/src/host.rs):IDXGIFactory5::CheckFeatureSupport(DXGI_FEATURE_PRESENT_ALLOW_TEARING)unlessVICTORY_TEARING=0, passesDXGI_SWAP_CHAIN_FLAG_ALLOW_TEARINGat swap-chain creation andResizeBuffers, and presents withDXGI_PRESENT_ALLOW_TEARING(eliminating vblank wait rounding in foreground independent-flip windows).Present(..., DXGI_PRESENT_ALLOW_TEARING)call returns an error, automatically falls back toDXGI_PRESENT(0)for the rest of the run and logs once.host::tests::tearing_chain_flags_match_support.926c46bab3b86bd6recovery (crates/victory-shader/src/emit/mod.rs):emit()now retries a failingloops_wavecompute shader once withLOOPS_OFFenabled via an RAIILoopsOffGuard(resetting thread-local state safely on return/unwind).water_shading:CS_TransmissionVolumetricsSubmerged_bbfb2953_Wrapped(#926c46bab3b86bd6), emitting1cd47a933c4cc838, validating withdxil.dll 10.0.22000.0, and building a D3D12 compute PSO on RTX 4060 Ti.926c46bab3b86bd6no longer fails at boot (untranslated_total=1,critical_fails=0).Rig Specs Tested On
33,304,932KiB)10.0.26300/ NVIDIA Driver32.0.16.2124Run Settings & Profile
diag&release(RUSTFLAGS='-C link-self-contained=yes') @0be1878(feat/iter26-dxgi-tearing-and-underwater-fallback)series-s(unattended launch smoke test viaverify-live.ps1)VICTORY_EARLY_DEPTH=1, unattended menu/intro only)DLSS quality(VICTORY_DLSS=1,VICTORY_DLSS_MODE=quality,Streamlineloaded)offVICTORY_*Overrides:D:\victory-build\minivi\diag\victory.exe run --execute --console series-s ...viaverify-live.ps1.VICTORY_HOST_MAX_WAVE=32 VICTORY_WAVE_WHY=1 VICTORY_TRANSLATE_ONLY=926c46bab3b86bd6 victory.exe translate ... --validate --pipelines --list.11 draws/frame, 3 active windows) + offline926c46bab3b86bd6translation/validation/PSO verification (interactive underwater diving was not playtested here).Measurements & Verification
30.0 fps(33.3 ms/frame) in unattended smoke test (11 draws/frame,0 dropped), loggedswap chain: frames shown as soon as presented ... tearing=trueoff)610indexed textures /181 MBuploaded,0passed over unmapped0(verify-live.ps17/7 [PASS],critical_fails=0,untranslated_total=1,non_system_mingw_dlls=0on bothreleaseanddiag)cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy(294 files ok)cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask(6 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings(0 warnings)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings(0 warnings)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader -- --test-threads=1 wave64_tests(12 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu -- --test-threads=1(449 passed; 0 failed; 36 ignored, includinghost::tests::tearing_chain_flags_match_support)victory-shaderrun (deferred to GitHub Actions CI due to pre-existing local Windows SDK10.0.22000.0\x64\dxil.dllPSV0 rejections on 3 untouched tests)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T03:42:34Z.
CI passed cleanly: https://github.com/Androtim/MiniVI/actions/runs/46103814315
Verified checks on
0be1878:checkSUCCESSxtask policy(294 files ok) &xtask test(6 passed)clippydefault &diagnostics(0 warnings)victory-shaderwave64_tests(12 passed) &victory-gpu(449 passed; 0 failed)release&diagbuilds (non_system_mingw_dlls=0)water_shading:CS_TransmissionVolumetricsSubmerged(#926c46bab3b86bd6) emitted, validated withdxil.dll, and built D3D12 PSO on RTX 4060 Ti (WAVE-LOOPS left out)verify-live.ps1): 7/7[PASS],tearing=true,untranslated_total=1,critical_fails=0, 30.0 fps, 0 DREDImported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T04:03:16Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
CI is passing, and both changes in this PR are clean, well-scoped, and sound:
DXGI
ALLOW_TEARINGimmediate present (crates/victory-gpu/src/host.rs)tearing()queriesIDXGIFactory5::CheckFeatureSupport(DXGI_FEATURE_PRESENT_ALLOW_TEARING)using aBOOL-sized output unlessVICTORY_TEARING=0.Presenterpersists the swap-chain creation flag (tearing) and passeschain_flags(p.tearing)to bothCreateSwapChainForHwnd(andstreamline::fsr::swap_chainvia&desc) andResizeBuffers, satisfying DXGI's requirement thatALLOW_TEARINGflags stay consistent across resizes.Present(0, DXGI_PRESENT_ALLOW_TEARING)gracefully falls back toPresent(0, DXGI_PRESENT(0))and disablespresents_tearingfor the rest of the run if a tearing present is refused, with one-shot warning logs.host::tests::tearing_chain_flags_match_supportcoverschain_flags.Wave64
LOOPS_OFFcompute fallback (crates/victory-shader/src/emit/mod.rs)emit()splits outemit_once()and retries once with thread-localLOOPS_OFFenabled whenemit_once()returnsErr(ShaderError::Unsupported { .. })andloops_wave(native)is active.LoopsOffGuardrestores the priorLOOPS_OFFvalue onDrop(panic- and reentrancy-safe), andemit_once()clears thread-locallower::take_needs()at entry so retry state stays clean.first) is preserved.Why Local GPU Testing Is Needed
Because this PR modifies D3D12 swap-chain presentation (
ALLOW_TEARING/ResizeBuffers/Present) and wave64 compute shader emission (926c46bab3b86bd6), and the PR's unattended smoke test ran with frame generation off and without interactive underwater diving, a local real-GPU test is warranted before merging:926c46bab3b86bd6behavior in-game).ALLOW_TEARINGpresent, window resizing (ResizeBuffers),VICTORY_TEARING=0fallback, and compatibility with DLSS/FSR3 frame generation swap chains if enabled.Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T21:11:10Z.
Real-GPU Playtest Report (Combined Build 1 Stack — RT OFF)
Tested in combined Build 1 (
origin/main+ Build 1 PRs#2, #3, #4, #6, #7, #9, #10, #11, #12, #14, #15, #18, #19, #22, #25, #26, #27, #33, #34, #36, #40, #43, #44, #46) on NVIDIA GeForce RTX 4060 Ti (8 GB), Windows, Series S (quality-720p, DLSS Quality):1a-build1-world.log) — 0 crashes, 0 DRED resets, clean exit.28.2 fps(35.4 ms/frame) mid-run,16.9 fps(59.3 ms/frame,4,446draws/frame) in heavy scene.tearing=true,0refused presents.926c46bab3b86bd6): Translated and built host PSO cleanly.VICTORY_THIN_GATE): Active (0no free dynamic descriptor slotswarnings).6,934 MBin use (33texture blocks =2,112 MB,1,036 MBfree),0bogusPOOL:errors.16,577upscalings (0failed).8,802textures were still queued /206non-RT draws dropped without a host pipeline; no D3D12 errors.