mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 13:08:37 +00:00
One squashed commit of a fork that was developed on a Linux/Proton machine and tested on two native Windows machines. On all of them the retail 1.0.2.1 package now launches, shows its launch movie, first-run pages and landing prompt, runs the story load to its end with the loading slideshow drawing its artwork, and enters the world phase. A first world frame is not verified yet. docs/linux_proton.md has the setup, a healthy boot's timeline, the machines and where it stops. Runtime: frames in the title's own window; DirectStorage pinned reads, page-list scatter/gather, BCPack and unshuffle with a locally generated predictor file; pooled, device-local and deferred image backing for streamed and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table that degrades instead of refusing a submission; a descriptor hash finalizer (off until a library carries it); directly indexed heap offsets for compute dispatches and VS/PS/GS draws; title buffer windows outside a fragmented arena; opt-in device-local copies of streamed buffer views; write-fault retries under the tracker lock, shared trackers and write-watched title memory for native Windows; device-loss, compute-input and memory probes. Translator: loop bounds at structured exits, the eight FidelityFX programs that use a packed-dot form the disassembler skips, buffer bounds modes per view kind, a compaction option, the hash finalizer option. Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows boot script, the paired compute translation script. No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted by people on the machines named in docs/linux_proton.md. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
29 lines
1.2 KiB
NASM
29 lines
1.2 KiB
NASM
; M3 vertex shader: a rectangle from the vertex index, placed and set at a depth by root constants. Run:
|
|
; d3d12_m3_frame_test (found by the SHA-256 of its FSSM program, as vs_m15 and vs_m2 are).
|
|
; User data, from the root signature [0], eight 32-bit constants (floats) = s8..s15 (the console's graphics layout
|
|
; starts at s8):
|
|
; s8, s9 = clip-space x, y of the first corner; s10, s11 = x, y of the opposite corner; s12 = depth (clip z)
|
|
; s13, s14, s15 = used by the pixel shader
|
|
; v0 = VertexIndex, 0..3 (the test draws indices 0 1 2 2 1 3 with DrawIndexedInstanced and base vertex 0):
|
|
; u = v0 & 1, v = (v0 >> 1) & 1; pos0 = (x0 + u * (x1 - x0), y0 + v * (y1 - y0), z, 1)
|
|
; The corners are multiples of 1/32 and the depths are dyadic, so every operation here is exact however it is fused.
|
|
; fssm-at: 0x10
|
|
; fssm-data: 0x33534d56 0x20535620
|
|
v_and_b32_e32 v1, 1, v0
|
|
v_and_b32_e32 v2, 2, v0
|
|
v_cvt_f32_u32_e32 v1, v1
|
|
v_cvt_f32_u32_e32 v2, v2
|
|
v_mul_f32_e32 v2, 0.5, v2
|
|
v_mov_b32_e32 v7, s8
|
|
v_mov_b32_e32 v8, s9
|
|
v_mov_b32_e32 v9, s10
|
|
v_mov_b32_e32 v10, s11
|
|
v_sub_f32_e32 v9, v9, v7
|
|
v_sub_f32_e32 v10, v10, v8
|
|
v_fma_f32 v3, v1, v9, v7
|
|
v_fma_f32 v4, v2, v10, v8
|
|
v_mov_b32_e32 v5, s12
|
|
v_mov_b32_e32 v6, 1.0
|
|
exp pos0 v3, v4, v5, v6 done
|
|
s_endpgm
|