Windows playability, shader translation, D3D12 stability, and HLE improvements #1330
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1330
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1330/head"
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?
@sahajiscoding on GitHub · 2026-11-24 17:29 UTC · original
sahajiscoding:main→main· +17734 −2165 · 76 files · 50 commits · closed without mergingSummary
A set of clean-room improvements across the shader compiler, D3D12 runtime, HLE platform modules, formats/loader, and Windows launcher experience, focused on Windows playability and stability. All changes strictly follow
docs/asset-policy.md(zero copyrighted assets;Cargo.lock,.github/workflows/ci.yml, and.gitignoreunchanged).1. Shader Translation & DXIL (
victory-shader)v_mul_hi_{u,i}32_{u,i}24,v_mad_{u,i}32_{u,i}16,v_lerp_u8,v_sad_u{8,16,32},v_cvt_pk_{u,i}16_{u,i}32, andv_dot{2,4}_{i,u}32_{i,u}{16,8}(wrapping 32-bit path, plusINT64-flagged saturatingclamppath), validated withdxil.dll.image_storedmasks: Supports0x0,0x1,0x3,0x7,0xF(both 32-bit andd16), while still rejecting sparse masks.SFI0feature bit reporting (Int64Ops,AtomicInt64OnTypedResource,AtomicInt64OnHeapResource,ViewportAndRTArrayIndexFromAnyShaderFeedingRasterizer), helper-lane protection for pixelv_readfirstlane_b32, and additional VALU / f16 / wave-size handling.#878): Includess_bcnt1_i32_b32/b64lane-mask tracking and dead-edgeundefhandling infill_phis. (Flagging for review: please note the open discussion on#878regarding Wave32 uniforms_bcnt1branches — happy to revert or adjust that hunk separately if preferred.)2. D3D12 Runtime & GPU Host (
victory-gpu)#208/#1132): UsesIDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)with optionalVICTORY_ADAPTER=<index | name substring>override and startup GPU/VRAM logging so hybrid Windows laptops don't default to an iGPU.#100/#86): Caps shader-visible sampler heaps at D3D12's architectural 2,048 limit instead of failing heap creation.#358): Returns the in-memory translated shader if persisting the entry to disk fails.OMSetDepthBounds), monotonic fence updates, clamped sampler descriptors, saturating COM refcounts, dirty-page texture detiling (Layout::extents), and wave-lane count reporting (wave_lane_count_max).F11/Alt+Enterborderless fullscreen toggling and cleanWM_CLOSEhandling.3. HLE, Input, Audio & Platform (
victory-hle,victory-formats,victory-loader,victory-pipeline,victory-game)gameinput.rs):Space=A,Left Ctrl=B,R=X,Left Shift=L3, mouseLMB=RT/RMB=LT/MMB=R3, andRMB/F9mouse camera look).previous_reading/next_readingnow walks readings across all devices in chronological order (#361).lifecycle.rs:F11/Alt+Enterborderless fullscreen toggle on hooked title windows and>= 1dimension clamp infit_into()(#451).display.rs: No-op deferral fallback whenPowerSetRequestreturnsERROR_NOT_SUPPORTED.xasync.rs:XTaskQueueRegisterWaiter/XTaskQueueUnregisterWaiter(#888) and immediate wake/cancel of delayed callbacks onXTaskQueueTerminate(#132).files.rs: Clamps..traversal at the virtual drive root on short paths as well (#182).dstorage.rs: AddedCancelRequestsWithTagandQuery(#889).speech.rs,xgame.rs,xgameui.rs,xsystem.rs,net.rs:XAccessibilityslots (#865),QueryInterfaceon allxgamevtables (#901), password input style (#881), sandbox ID buffer check (#862), and zero-addressconnect/WSAConnecthandling (#891).xma.rs: Cached IMDCT pre/postsin_costables across subframes (#172) and bit-reader width guards (#907).cache.rs: Atomic Windows NTFS cache publication usinghard_link+remove_fileto preventERROR_ACCESS_DENIEDraces (#890).sgd5.rs,crash.rs,tls.rs,stacks.rs: Checked arithmetic, slice-basedclwb_len, and TLS/stack bounds guards (#905,#924,#938).4. Windows Launcher & Packaging (
apps/victory,victory-core,scripts/)victory doctor& interactive launcher (#910): Double-clickingvictory.exeopens an interactive PC readiness & title launcher menu with GPU/SM 6.6/Mesh Shader diagnostics,[S]game-folder setup wizard (victory.toml),[K]controls guide, Series X/S toggle, and Explorer drag-and-drop.exelaunching.victory.tomlnext tovictory.exewhen not present in the working directory.scripts/build-windows.ps1to build and assemble a portable Windows folder undertarget\victory-windows\.Testing & Verification
windows-latest):cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --locked(all 11 crates, including WARP/DXIL validation tests, NTFS cache concurrency tests, new unit tests, andxtaskasset-policy check)ffe310e) into arena/d3857d4f-victory 50db939aa0Reconciles ~100 upstream commits (d2a4bae..ffe310e) with Waves 1-5: - Preserves upstream waterfall loops over per-lane descriptors/offsets, packed buffer formats, v_cvt_norm_{i16,u16}_f16, SV_StencilRef, PSV0 sample frequency, s_ttracedata_imm, v_cmp_class_f16, s_bitcmp0/1, worklist bitcode liveness, BCPack bucket lookup, Wine staging fill, null texture UAV dimensions, capture UNORM16/fmt89, HLE/loader fixes, and Windows CI workflow. - Keeps Waves 1-5 additions including spill-table user-data tracking, streaming zero-alloc BCPack lanes, dynamic descriptor slot reclamation paired with safe drop-on-exhaustion, UAV read/write hazard tracking, UserDataBinding root-CBV fallback, wave-size targeting, extended image_sample_*_cl/_o forms, and float source-modifier support on v_cvt_{u16,i16}_f16. Co-authored-by: arena-agent <[email protected]>ffe310ebe2dc01284@EduBertozzi on GitHub · 2026-11-24 17:30 UTC · original
A heads-up on part 4 (the launcher), from the author of #910's menu: #959 implements the same double-click menu and adds the same
apps/victory/src/menu.rsandmenu::wanted()hook inmain.rs. So whichever of the two lands first, the other conflicts.They overlap but aren't the same, so they could be combined instead of choosing one:
victory run, so a crash leaves the window up and shows how the run ended. It also:[S]game-folder setup that writesvictory.toml, the[K]controls guide, and the[M]Series X/S toggle. Those are good additions.If you split the launcher out as you offered, I'd be glad to bring
[S],[K]and[M]into #959, credited to you, or the other way round, whichever the maintainers prefer. That way the menu is reviewed once.AI-assisted (Claude Code).
@EduBertozzi on GitHub · 2026-11-24 18:14 UTC · original
@sahajiscoding I brought your three launcher ideas into #959 (
6614cc2), credited to this PR:game_dirline ofvictory.toml, so the file's comments stay. A dropped.exestands for its folder, and a folder inside the repo is refused.mainmaps it.So if the maintainers would rather review the launcher once, #959 now covers what part 4 of this PR adds. Your fullscreen and mouse-look keys aren't in it, since
maindoesn't have those features.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 00:37 UTC · original
Automated triage for the maintainers. Closing because it breaks a repository rule (see
docs/asset-policy.mdand the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed