Windows playability, shader translation, D3D12 stability, and HLE improvements #1330
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1330"
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 Marvisak/VIctory. Originally posted by sahajiscoding on 2026-11-24T17:29:43Z.
Summary
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)Imported from Marvisak/VIctory. Originally posted by EduBertozzi on 2026-11-24T17:30:50Z.
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).
Imported from Marvisak/VIctory. Originally posted by EduBertozzi on 2026-11-24T18:14:38Z.
@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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:37:34Z.
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.
upstream-sync referenced this pull request2026-11-25 10:07:33 +00:00
Pull request closed