Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
be1b4da
Merge branch 'vsharp-slot-records' into descriptor-refill
aslan2142 Nov 26, 2026
b6873ce
Merge branch 'bindless-dimension-limits' into descriptor-refill
aslan2142 Nov 26, 2026
9da604f
d3d12: the GPU address arena binds its memory in 2 MiB blocks as allo…
aslan2142 Nov 26, 2026
9d46dd6
d3d12: V# bases as signed offsets when every module sign-extends them…
aslan2142 Nov 26, 2026
5a98495
d3d12: title texture uploads wait for earlier work on the GPU, never …
aslan2142 Nov 26, 2026
2e16339
d3d12: the title texture refresh looks only at textures whose pages w…
aslan2142 Nov 26, 2026
134a1d1
d3d12: console heap slot records index exact ranges; a change looks o…
aslan2142 Nov 26, 2026
8f60604
xmem: slot-31 page copies onto a paired GPU-only range are table upda…
aslan2142 Nov 26, 2026
9ace8bc
Local test merge: slot-record index (134a1d17f)
aslan2142 Nov 26, 2026
2c443ff
Local test merge: remaps by table update (8f606046f)
aslan2142 Nov 26, 2026
fb1260d
Local test merge: sparse arena with signed V# offsets (9d46dd647)
aslan2142 Nov 26, 2026
3c3c502
Local test merge: #1867 finished, aliased shadow pages guarded (4f364…
aslan2142 Nov 26, 2026
9807c5e
d3d12: console heap T#s wait on their texture's address and are fixed…
aslan2142 Nov 26, 2026
458a280
d3d12_xs: hold console value waits until met; release only when nothi…
aslan2142 Nov 26, 2026
8c579b7
d3d12: a write noted by XG or DirectStorage makes the textures over i…
aslan2142 Nov 26, 2026
04e60ec
Local test merge: value waits held until met (458a2805d)
aslan2142 Nov 26, 2026
6f5e2dd
Local test merge: texture refresh by write tracking, uploads wait on …
aslan2142 Nov 26, 2026
83d9eee
Merge branch 'descriptor-refill' into slot-records-merged
aslan2142 Nov 26, 2026
41b46f0
Local test merge: descriptor refill on the exact-range index (83d9eee2b)
aslan2142 Nov 26, 2026
9aed60a
d3d12: title texture tiles over memory not committed yet are armed, a…
aslan2142 Nov 26, 2026
4559529
Local test merge: texture watch arms uncommitted pages, pinned tiles …
aslan2142 Nov 26, 2026
67863b3
d3d12: slot records: an addition finds the waiting V#s whose base it …
aslan2142 Nov 26, 2026
fe1980c
Local test merge: slot record visits bounded per addition and per sub…
aslan2142 Nov 26, 2026
d170028
d3d12: the title texture refresh reads and detiles the named textures…
aslan2142 Nov 26, 2026
1f2eac9
Local test merge: texture reads, hashes and detiles on read threads, …
aslan2142 Nov 26, 2026
d94b6c3
d3d12: title-built T#s wait under the layer's texture address and bin…
aslan2142 Nov 26, 2026
f7c3df1
d3d12: a title texture over a render target's memory is not filled fr…
aslan2142 Nov 26, 2026
3cc0e9e
Local test merge: rewritten V# halves answered by a waiting record; T…
aslan2142 Nov 26, 2026
edc3bd5
Local test merge: no fill over GPU-written memory, uploads at a textu…
aslan2142 Nov 26, 2026
14d436c
d3d12: views and T#s of a texture placed over a render target's memor…
aslan2142 Nov 26, 2026
293fbea
d3d12: LEONIDA_GPU_PROFILE=1 measures the GPU time of each pipeline f…
aslan2142 Nov 26, 2026
afdbbdc
Local test merge: a texture over a GPU-written texture resolves to th…
aslan2142 Nov 26, 2026
b54413e
xmem: slot-31 copies onto a paired range make no host call; the host …
aslan2142 Nov 26, 2026
106336a
Local test merge: LEONIDA_GPU_PROFILE, GPU time per pipeline (293fbeaca)
aslan2142 Nov 26, 2026
1e05b59
Local test merge: readers of GPU-only memory go through the frame tab…
aslan2142 Nov 26, 2026
cadf432
d3d12: a title texture tracked again over the same tiles is not read …
aslan2142 Nov 27, 2026
bc2bffe
Local test merge: re-tracking a texture over the same tiles is a no-o…
aslan2142 Nov 27, 2026
59f14e1
device-markers: draws get marker pairs too, and the report names the …
aslan2142 Nov 27, 2026
92800c0
Local test merge: device markers around draws (59f14e13c)
aslan2142 Nov 27, 2026
b73375f
xmem: a slot-31 copy of a reused page number gives the table page the…
aslan2142 Nov 27, 2026
6edfe23
xmem: the title's VirtualProtect never reports or restores one of our…
aslan2142 Nov 27, 2026
ffa322b
Local test merge: the title's VirtualProtect runs with our guards off…
aslan2142 Nov 27, 2026
4ff68ec
Local test merge: a table page follows a reused physical page number …
aslan2142 Nov 27, 2026
70a9237
Merge branch 'test/round2' into slot-records-merged
aslan2142 Nov 27, 2026
914f72f
test: vk_sparse_bind_bench measures page-sized sparse binds (per call…
aslan2142 Nov 27, 2026
54b4e2f
d3d12: a texture read whole is copied and hashed by its tiles on all …
aslan2142 Nov 27, 2026
0a894ef
Local test merge: whole texture reads in 1 MiB pieces on all read thr…
aslan2142 Nov 27, 2026
604c232
d3d12: a rewritten V# whose range has a current resolved record takes…
aslan2142 Nov 27, 2026
f0c8c17
Local test merge: rewritten V# halves answered by a current resolved …
aslan2142 Nov 27, 2026
3d0294e
test: vk_sparse_bind_bench tries sparse buffers at chosen device addr…
aslan2142 Nov 27, 2026
11c6647
Merge branch 'test/round2' into page-mirror
aslan2142 Nov 27, 2026
b699078
d3d12, xmem: the page mirror: the title's GPU-readable pages at heap_…
aslan2142 Nov 27, 2026
5b88eaa
Local test merge: page mirror core and the GPU-only pool at heap_base…
aslan2142 Nov 27, 2026
61e9ed4
tracking: what a guard costs under Wine, a hot/cold write policy, and…
aslan2142 Nov 27, 2026
fb1c881
Merge branch 'test/round2' into tracking-policy
aslan2142 Nov 27, 2026
77ecad8
tracking: the hot/cold policy as the page mirror's tracking (HotColdT…
aslan2142 Nov 27, 2026
63bb5d1
test: vk_heap_alias_test binds one home into a mirror chunk and into …
aslan2142 Nov 27, 2026
b4a6c36
page mirror: a range's pages bound at a second address, and a filter …
aslan2142 Nov 27, 2026
adc74d5
runtime: per-frame CPU line and the floor of an unchanged submission,…
aslan2142 Nov 27, 2026
872a8cf
descriptors: a heap T# carries its bindless index in dword 6; shaders…
aslan2142 Nov 27, 2026
edb0f85
d3d12: geometry onto the page mirror: V#s, root views, stream-pool ra…
aslan2142 Nov 27, 2026
b5a67db
Local test merge: guard-fault benchmark, hot/cold write tracking for …
aslan2142 Nov 27, 2026
0513e00
rdna2spirv: the 4x8-bit dot products as SPV_KHR_integer_dot_product
aslan2142 Nov 27, 2026
2e54980
rdna2spirv: multi-dword scalar loads as wide loads with one bound check
aslan2142 Nov 27, 2026
4f00dae
WIP: step C (slot-133 buffers on the mirror, write-back of mirrored p…
aslan2142 Nov 27, 2026
f950eaa
Merge branch 'test/round2' into page-mirror
aslan2142 Nov 27, 2026
721e56f
Local test merge: v_dot4 as packed integer dot products; one bounds c…
aslan2142 Nov 27, 2026
0cdc80d
d3d12: slot-133 buffers, title windows and pool extents onto the page…
aslan2142 Nov 27, 2026
c1f5732
submit_frame_test: the contended lock is taken and released on its ho…
aslan2142 Nov 27, 2026
897026d
Local test merge: submit frame and submit floor lines (adc74d5d6, c1f…
aslan2142 Nov 27, 2026
054cbe0
Local test merge: geometry, slot-133 buffers, title windows and pool …
aslan2142 Nov 27, 2026
ba32cd6
d3d12: a console resource heap the page mirror holds is read in place…
aslan2142 Nov 27, 2026
26e0830
descriptors: T# index word follows SGPR spills and VCC, deferred view…
aslan2142 Nov 27, 2026
74bfb7d
Merge branch 'test/round2' into tsharp-index
aslan2142 Nov 27, 2026
5cf7f89
page mirror: the XMemAlloc heap in the mirror's range; pages written …
aslan2142 Nov 27, 2026
be3e9c1
descriptors: the T# index word in the contract table, README and tran…
aslan2142 Nov 27, 2026
23c3341
Merge branch 'test/round2' into heaps-in-place: heaps read in place u…
aslan2142 Nov 27, 2026
b67ef5e
Local test merge: the runtime's own title heap in the mirror's range;…
aslan2142 Nov 27, 2026
3c9820f
Local test merge: bindless index in dword 6 of heap T#s, read directl…
aslan2142 Nov 27, 2026
b0712ff
Merge test/round2 into heaps-in-place: per-piece sums and the T# inde…
aslan2142 Nov 27, 2026
d23bb0f
Local test merge: console descriptor heaps read in place from the mir…
aslan2142 Nov 27, 2026
c1148ff
page mirror: the write-back copies homes out with the GPU instead of …
aslan2142 Nov 27, 2026
bf795e7
Local test merge: write-back reads the mirror's homes through a GPU c…
aslan2142 Nov 27, 2026
df0c583
tests: wide scalar loads whose destination is their own V#
aslan2142 Nov 27, 2026
0bc51d5
Local test merge: wide scalar loads pinned against the old translatio…
aslan2142 Nov 27, 2026
d0636fc
title textures: a retired slot-70 texture forgets its address only wh…
aslan2142 Nov 27, 2026
d7baefc
d3d12: name the memory a V# resolved to nothing names, and what one c…
aslan2142 Nov 27, 2026
34974b7
Local test merge: retiring a slot-70 texture no longer erases the key…
aslan2142 Nov 27, 2026
9e20441
Local test merge: what the host has at V# bases that resolve to nothi…
aslan2142 Nov 27, 2026
32851f9
compute-input probe: one write per descriptor record; T# keys looked …
aslan2142 Nov 27, 2026
4ce08f5
Local test merge: compute-input diagnostic finds T#s and writes whole…
aslan2142 Nov 27, 2026
462de0e
geometry watch: a page the mirror leaves writable is hot in its cell,…
aslan2142 Nov 27, 2026
88a79cf
Local test merge: the geometry watch's cell owns the guard for pages …
aslan2142 Nov 27, 2026
9201736
heaps in place: the title's bytes at the title's address, a filtered …
aslan2142 Nov 27, 2026
3a4222e
heaps in place: fix_vsharp's null back as it was; the whole null only…
aslan2142 Nov 27, 2026
cd219e6
Local test merge: heap pages hold the title's bytes in the mirror; th…
aslan2142 Nov 27, 2026
0ae59b2
Fix TitleMirror write-back remap corruption and harden TitleHeap
aslan2142 Nov 27, 2026
e6031df
O(dirty+hot) TitleWritePolicy and read-only root view / GPU write tra…
aslan2142 Nov 27, 2026
ace94ae
Fix page mirror write-back ordering, batching, lock scope, and phase …
aslan2142 Nov 27, 2026
e4b3d1e
Merge branch 'fix/mirror-and-heap' of /tmp/swarm-mirror-author into f…
aslan2142 Nov 27, 2026
3c48b68
Merge branch 'fix/policy-and-alias' of /tmp/swarm-policy-alias into f…
aslan2142 Nov 27, 2026
6eb3727
Key page_mirror.readback_invalidated by physical frame instead of VA
aslan2142 Nov 27, 2026
5543ba9
d3d12: eliminate orphan title windows, align mirror chunks, and speed…
aslan2142 Nov 27, 2026
37fcb9f
Runtime: two-tier mirror hot/cold policy, batched guards, fast fill &…
aslan2142 Nov 27, 2026
7ffaaf0
Merge branch 'r1/mirror-policy' of /tmp/swarm-r1-mirror-policy into r…
aslan2142 Nov 27, 2026
e83f9fd
d3d12: wire TitleMirrorHooks::filter_pieces and HotColdTracking::on_p…
aslan2142 Nov 27, 2026
50c5edd
runtime: unlock VulkanQueue state_mutex_ across execution, coalesce r…
aslan2142 Nov 27, 2026
5cbd3e5
Merge branch 'r1/queue-async' of /tmp/swarm-r1-queue-async into r1/wi…
aslan2142 Nov 27, 2026
2e00ea6
runtime: track active async, executing, and GPU queue progress for li…
aslan2142 Nov 27, 2026
4442c5b
runtime: restore kPromote=6/8, drop frame_hot over-copying, and wire …
aslan2142 Nov 27, 2026
bc2038d
Merge r11/gate-async
aslan2142 Nov 27, 2026
03f1cd7
Merge r11/mirror-policy
aslan2142 Nov 27, 2026
b0419ce
runtime: preserve sync ExecuteCommandLists, drop unsafe batch coalesc…
aslan2142 Nov 27, 2026
fdd5829
d3d12: fix console heap in-place filtering and TitleMirror home.sums …
aslan2142 Nov 27, 2026
bed51f1
Merge r12/queue-sync
aslan2142 Nov 27, 2026
09d232f
Merge r12/heap-mirror
aslan2142 Nov 27, 2026
aa59151
rdna2spirv: park pure scalar-spill VGPRs across all stages and wave s…
aslan2142 Nov 27, 2026
adbf518
d3d12: Stage 3a fast CPU texture refresh + Stage 3b GPU detile from T…
aslan2142 Nov 27, 2026
34173ab
runtime: Stage 4 same-queue submit merge, async geometry epoch, and O…
aslan2142 Nov 27, 2026
5247709
Merge branches 'r2/textures' and 'r2/floor-merge' into test/round2
aslan2142 Nov 27, 2026
427ec84
runtime: wire Round 2 fast-paths, atomic batch uploads, and review fixes
aslan2142 Nov 27, 2026
9e26766
runtime: skip before_execute on staging queue and fix async submit co…
aslan2142 Nov 28, 2026
8133156
d3d12: 256B TitleMirror piece-hash skip and 16 MiB chunked texture wa…
aslan2142 Nov 28, 2026
b1cd4f2
Merge branches 'r21/textures' and 'r21/async' into test/round2
aslan2142 Nov 28, 2026
1d3e155
d3d12: skip before_execute on internal staging_queue copies
aslan2142 Nov 28, 2026
de8604c
Merge ProjectLeonida/mandy main (431ceba4f) into test/round2
aslan2142 Nov 28, 2026
8bd36f4
runtime: make oldest_held_seq read-only and bind descriptor in check_…
aslan2142 Nov 28, 2026
9e085fa
rdna2spirv: eliminate absent-lane subgroup UB and add static/GPU checks
aslan2142 Nov 28, 2026
181e9df
runtime: add GLC barriers, literal sampler specialization, and writes…
aslan2142 Nov 28, 2026
6727335
rdna2spirv: add coherent VMM, literal sampler SpecId, float image eli…
aslan2142 Nov 28, 2026
072327c
runtime: tighten TitleMirror/GeometryViews lifetime guards and PR hyg…
aslan2142 Nov 28, 2026
73fdc2a
rdna2spirv: enable FTZ32/fmulz and per-load NonWritable SMEM with out…
aslan2142 Nov 28, 2026
871cb69
Merge branch 'r3/absent-lane-ub' into test/round3
aslan2142 Nov 28, 2026
085cb0c
Merge branch 'r3b/glc-writeback' into test/round3
aslan2142 Nov 28, 2026
07e86a0
Merge branch 'r3b/alu-smem' into test/round3
aslan2142 Nov 28, 2026
0508c53
Merge branch 'r3b/img-sampler' into test/round3
aslan2142 Nov 28, 2026
a6ed03c
rdna2spirv: hoist coherent scalar_load OpConvertUToPtr above selectio…
aslan2142 Nov 28, 2026
bdfde3a
rdna2spirv: refine HW_REG_MODE FTZ32 check and loop sbuf_slow_xN helpers
aslan2142 Nov 28, 2026
e9bd907
runtime: add ReplayStateCache and two-tier frame-hot TitleWritePolicy
aslan2142 Nov 28, 2026
8e834a3
rdna2spirv: refine SMEM NonWritable CFG/descriptor provenance and flo…
aslan2142 Nov 28, 2026
cee184e
Merge branch 'r4/smem-img' into test/round4
aslan2142 Nov 28, 2026
5528adb
Merge branch 'r4/cpu-replay-mirror' into test/round4
aslan2142 Nov 28, 2026
f4df7c4
Merge remote-tracking branch 'mandy/main' into test/round4
aslan2142 Nov 28, 2026
65acf73
runtime: remove frame-hot mirror over-copying and measure write-back …
aslan2142 Nov 28, 2026
ecbdb30
runtime: AVX2/SSE2 shadow_keep::sum_of, parallel TitleMirror pool, an…
aslan2142 Nov 28, 2026
184d03e
runtime: fast mirror-hashed texture refresh and watermarked passive w…
aslan2142 Nov 28, 2026
89fe359
runtime: VulkanQueue execute+signal coalescing, fast heap filtering, …
aslan2142 Nov 28, 2026
6c3cc1c
Merge branch 'r5/textures-fast' into test/round5
aslan2142 Nov 28, 2026
faf1ee3
Merge branch 'r5/queue-coalesce' into test/round5
aslan2142 Nov 28, 2026
a8bafec
runtime: enable x86-64-v3 / AVX2 codegen and drop unused typedef
aslan2142 Nov 28, 2026
0577e45
runtime: remove unused legacy CPU texture hash helpers
aslan2142 Nov 28, 2026
3007ae0
runtime: unlocked parallel readback pre-hashing, piece-level skip mas…
aslan2142 Nov 28, 2026
758b987
runtime: single-flight before_execute coalescing, frame-group async r…
aslan2142 Nov 28, 2026
f6d3f30
runtime: batched mirror texture checks, GPU-fallback mirror_hash skip…
aslan2142 Nov 28, 2026
6fd734e
Merge branch 'r6/queue-contention' into test/round6
aslan2142 Nov 28, 2026
ccd7744
Merge branch 'r6/textures-watch' into test/round6
aslan2142 Nov 28, 2026
80734a8
runtime: wire scoped readback skip masks into batched texture checks …
aslan2142 Nov 28, 2026
350f84e
runtime: fix duplicate readback_pool member and parenthesized std::ma…
aslan2142 Nov 28, 2026
cd8b563
Merge branch 'main' of https://github.com/ProjectLeonida/mandy into t…
aslan2142 Nov 28, 2026
586970b
runtime: dynamic rendering scope batching, no-op LayoutTracker elisio…
aslan2142 Nov 28, 2026
aff99e0
runtime: parallel Phase-A heap filter, single-lock unwatch, fault Vir…
aslan2142 Nov 28, 2026
49da651
runtime: slot-70 deferral, lazy TitleImageUpload waits, per-fence vis…
aslan2142 Nov 28, 2026
ec6251e
Merge branch 'r7/mirror-wb' into test/round7
aslan2142 Nov 28, 2026
6bd0c4e
Merge branch 'r7/sync-tex' into test/round7
aslan2142 Nov 28, 2026
2af7c5b
runtime: fix FilterCacheScope signed_vsharp_offsets call and finish_i…
aslan2142 Nov 28, 2026
dd78a02
runtime: back deferred pending_stream images in refresh_title_texture…
aslan2142 Nov 28, 2026
e4c0708
runtime: publish deferred streamed views in refresh_title_texture onc…
aslan2142 Nov 28, 2026
f913286
runtime: Round 8 WS1 — PageMirror batching, direct page table, L1-str…
aslan2142 Nov 28, 2026
fbeb3d9
runtime: Round 8 WS2 — eliminate false texture re-uploads, zero-sysca…
aslan2142 Nov 28, 2026
59db4b6
runtime: Round 8 WS3 — fix list-value gate TOCTOU, offload QueueHolds…
aslan2142 Nov 28, 2026
d9eee22
Merge branch 'r8/mirror-fast' into test/round8
aslan2142 Nov 28, 2026
d4f17ae
Merge branch 'r8/tex-fast' into test/round8
aslan2142 Nov 28, 2026
e9aaba0
Merge branch 'r8/gates-floor' into test/round8
aslan2142 Nov 28, 2026
6bbeaa2
runtime: run before_execute on empty CommandList submissions (fix d3d…
aslan2142 Nov 28, 2026
84c7f46
runtime: Round 9 WS1 — CellGuard/reopen fast paths, WC streaming copy…
aslan2142 Nov 28, 2026
09f8cb6
runtime: Round 9 WS2 — read+back cache/coalescing, single-lock title_…
aslan2142 Nov 28, 2026
5cabf33
Merge branch 'r9/mirror-deep' into test/round9
aslan2142 Nov 28, 2026
f479b1f
runtime: Round 9 WS3 — fix 65,536 bindless exhaustion via ViewKey sha…
aslan2142 Nov 28, 2026
a2a8993
Merge branch 'r9/tex-readback' into test/round9
aslan2142 Nov 28, 2026
12e13dd
Merge branch 'r9/bindless-finish' into test/round9
aslan2142 Nov 28, 2026
8f78261
runtime: distinguish D3D12 API ViewKeys on shared placeholder images …
aslan2142 Nov 28, 2026
ddf184c
runtime: Round 10 WS1 — fix bindless GC thrash via evictable console-…
aslan2142 Nov 28, 2026
70ea06a
runtime: Round 10 WS2 — shared Cell::known_* cache, TitleHeap changed…
aslan2142 Nov 28, 2026
672f2b1
Merge branch 'r10/bindless-gc' into test/round10
aslan2142 Nov 28, 2026
6bd17e2
runtime: Round 10 WS3 — GPU-met gate vis_seq=0, retroactive GPU-to-GP…
aslan2142 Nov 28, 2026
b6d49ca
Merge branch 'r10/mirror-arm' into test/round10
aslan2142 Nov 28, 2026
5c5ebee
Merge branch 'r10/tex-overlap' into test/round10
aslan2142 Nov 28, 2026
6032150
runtime: avoid Windows rpcndr.h 'small' macro clash in d3d12_xs_list_…
aslan2142 Nov 28, 2026
0040a3d
runtime: Round 10b WS-A — bare write-group vis_seq bump, exact landed…
aslan2142 Nov 28, 2026
89b7b34
runtime: Round 10b WS-B/C/D — feed_seq coalescer guard, map_view TOCT…
aslan2142 Nov 28, 2026
5e622d3
Merge branch 'r10b/sync' into test/round10
aslan2142 Nov 28, 2026
e773dba
Merge branch 'r10b/vm-bindless' into test/round10
aslan2142 Nov 28, 2026
600d675
runtime: replace full-pass B1 feed_seq gate with lightweight feed-onl…
aslan2142 Nov 28, 2026
66d4723
Merge upstream ProjectLeonida/mandy main (d48a957bb) into test/round10
aslan2142 Nov 28, 2026
232b4a1
tools/rdna2spirv.py: force software denorm flush on v_exp_f32 under F…
aslan2142 Nov 28, 2026
d1f5351
ci: fix PR-specific translator, runtime test, and docs/check failures
aslan2142 Nov 28, 2026
a8b1abe
Merge upstream ProjectLeonida/mandy main (0318164b8) into test/round10
aslan2142 Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
- "tools/cfg_structure.py"
- "tools/conformance/**"
- "tools/cpu_ref.py"
- "tools/descriptor_sources.py"
- "tools/f32_fuzz.py"
- "tools/file_mode.py"
- "tools/first_light.py"
Expand All @@ -38,6 +39,7 @@ on:
- "tools/gen_bcpack_runtime_tables.py"
- "tools/gen_d3d12_stubs.py"
- "tools/gfx10_formats.json"
- "tools/heap_index_census.py"
- "tools/lane_masks.py"
- "tools/mc_command.py"
- "tools/mesh_compute_vs.py"
Expand Down Expand Up @@ -81,6 +83,7 @@ on:
- "tools/cfg_structure.py"
- "tools/conformance/**"
- "tools/cpu_ref.py"
- "tools/descriptor_sources.py"
- "tools/f32_fuzz.py"
- "tools/file_mode.py"
- "tools/first_light.py"
Expand All @@ -90,6 +93,7 @@ on:
- "tools/gen_bcpack_runtime_tables.py"
- "tools/gen_d3d12_stubs.py"
- "tools/gfx10_formats.json"
- "tools/heap_index_census.py"
- "tools/lane_masks.py"
- "tools/mc_command.py"
- "tools/mesh_compute_vs.py"
Expand Down
190 changes: 167 additions & 23 deletions docs/d3d12_vulkan.md

Large diffs are not rendered by default.

32 changes: 23 additions & 9 deletions docs/d3d12_xs_console_abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,29 @@ The runtime's model:
a gate fence that is signalled once memory compares true. The Vulkan layer holds the queue's later work behind
that wait without blocking the submitting thread (`src/queue_holds.h`). The pump only decides; a second thread,
the releaser, signals the gates, because that Signal runs the work the layer held behind them (the held
submission, the shadow refresh, a deferred Present), and the pump keeps landing writes and timing gates out
meanwhile.
- A gate opens after `LEONIDA_VALUE_WAIT_TIMEOUT_MS` (default 200) whatever memory holds, counted from when the
gates before it on its queue opened, and logged once per address. An address that timed out three times in a row
(the last 256 addresses are counted) gets 4 ms. Once four gates in a row timed out, so does every wait for an
address no wait was ever met for, until a gate cut short is met within its 4 ms; a wait cut short that memory
meets within the rest of the full timeout gives its address the full timeout from then on.
`LEONIDA_LIST_VALUES=0` drops both methods, as before. After `stop_list_values` (the process is ending) nothing
new is landed or opened.
submission, the shadow refresh, a deferred Present), and the pump keeps landing writes and looking at gates
meanwhile. Other queues' work, which does not wait for the gate, goes on.
- A gate is held until memory compares true, however long that takes: there is no timeout. It goes without its
value only when nothing else can make progress (`src/list_value_progress.h`): the releaser is idle, no title
`ExecuteCommandLists` is in progress, and no write group or remap of the pump runs on the GPU (one whose Signal the
layer holds behind a gate, a relayed wait or a title fence is not running). Then, for a queue's first held gate:
- **cycle**: what would write its value is held behind a gate that depends, through further held writes, on its
own queue: released at once;
- **present**: the title has presented since the gate was held (the present stands behind the held work): the
oldest gate that no held write could meet goes; a gate whose writer is held behind another queue's gate waits for
that one, so a chain unwinds in order;
- **stalled**: the title has made no queue call for 2 s and the gate has stood as long: its threads wait for the
held work (a deadlock through the title's CPU).
At device loss every gate goes. Each release is logged with the gate, its queue, the wait (address, comparison,
reference, memory) and the reason; a released wait is then watched for 10 s and, if memory meets it, counted and
logged with how much later (`met after release`). The periodic `list values so far` line counts gates held, met and
released unmet by reason, and names the oldest gate still held. The rule follows VIctory-Belobug-AMD's queue line
(`crates/victory-gpu/src/queue/behind.rs` `step`, `queue.rs` `release_held`: a held wait is forced only at a present
with nothing else runnable). The fixed 200 ms timeout (`LEONIDA_VALUE_WAIT_TIMEOUT_MS`) and its 4 ms demotions are
gone: at the slow frames of a Linux world run (seconds a frame), 14-63 gates per run timed out with memory one
step below a rising reference, the writer's value not there yet. `LEONIDA_LIST_VALUES=0` drops both methods, as
before. After `stop_list_values` (the process is ending) nothing new is landed or opened, and a held gate does not
delay it.
- Queue slot 31 (`CopyPageMappingsBatchX`, section 4) waits at most 16 ms for the queue's earlier work. Work held
behind a gate takes longer: the remap is then deferred to the releaser, which runs it once the queue's write
fence passes the call's point and only then opens a gate the queue's later work waits on, so the GPU sees the
Expand Down
19 changes: 14 additions & 5 deletions docs/design.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ reasons behind each step: [linux_proton.md](linux_proton.md#amd-on-linux-what-go
| `LEONIDA_RT_AS=off`, `LEONIDA_SKIP_COMPUTE=<list>` | the large ray-tracing programs, left out at play as in our longest runs ([above](#settings-every-platform-needs)) |
| `LEONIDA_TITLE_WATCHDOG=0`, `LEONIDA_TITLE_WATCHDOG_KICK=<trap RVA>,<kick RVA>` | the title's hang watchdog ([above](#settings-every-platform-needs)) |
| `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_MAP_READBACK=1`, `LEONIDA_FRAME_PACING=1`, `LEONIDA_PRESENT_NO_TEAR=1` | taken over from the NVIDIA report below; their effect on AMD was not measured one by one |
| `LEONIDA_ARENA_MB=4095`, `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_GEOMETRY_MB=6144` | room for the title's buffers in the world |
| `LEONIDA_ARENA_MB=4095`, `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_GEOMETRY_MB=6144` | room for the title's buffers in the world (with sparse binding the arena's size is address range; memory is bound as it is used) |
| `LEONIDA_SHADOW_ALIAS_MS=5000`, `LEONIDA_CONSOLE_FIX_US=0` | carried from earlier boot runs; their effect here was not measured one by one |
| `LEONIDA_DEVICE_FAULT=1` | a device-loss report if the GPU hangs |
| `LEONIDA_KEYBOARD_PAD=always` | the keyboard as the pad |
Expand Down
33 changes: 27 additions & 6 deletions make_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -1863,10 +1863,11 @@ def exe_shaders(game: str, work: str, mc_signature: str, jobs: int = 1, emulate:
WAVE64_MODES = ("auto", "on", "off")

# The translator's fallback flags make_game.py can forward, and the argparse attribute each one reads.
FALLBACK_FLAGS = (("--no-float-controls", "no_float_controls"), ("--bary-fallback", "bary_fallback"),
FALLBACK_FLAGS = (("--no-float-controls", "no_float_controls"), ("--no-ftz32", "no_ftz32"),
("--bary-fallback", "bary_fallback"),
("--texel-offset-fallback", "texel_offset_fallback"), ("--mesh-compute", "mesh_compute"),
("--f16-interp-fallback", "f16_interp_fallback"), ("--pc-tail-ubo", "pc_tail_ubo"),
("--compact-spirv", "compact_spirv"))
("--compact-spirv", "compact_spirv"), ("--integer-dot-fallback", "integer_dot_fallback"))


def fallback_flags(a) -> tuple[str, ...]:
Expand Down Expand Up @@ -2028,6 +2029,13 @@ def runtime_gpu_per_vertex():
return None


def runtime_gpu_integer_dot_product():
"""shaderIntegerDotProduct as tools/vk_subgroup_info.py answers for the GPU the runtime would use (required by
Vulkan 1.3, so False only on a Vulkan 1.2 device such as MoltenVK's), or None when it can't be told."""
v = runtime_gpu_info().get("integer_dot_product")
return v if isinstance(v, bool) else None


def runtime_gpu_barycentric_fallback():
"""Whether the selected Vulkan GPU's driver has a known BaryCoordKHR bug (Mesa ANV, AMD Windows on gfx90c), or None
when it can't be told."""
Expand Down Expand Up @@ -2072,7 +2080,7 @@ def runtime_gpu_max_push_constants():


# Source and data files that produce the translated modules, metadata, partner stubs and native PSO catalog.
TRANSLATION_SOURCES = ("rdna2spirv.py", "shader_ir.py", "cfg_structure.py", "file_mode.py", "fssm_header.py", "lane_masks.py", "wave64_halves.py",
TRANSLATION_SOURCES = ("rdna2spirv.py", "descriptor_sources.py", "heap_index_census.py", "shader_ir.py", "cfg_structure.py", "file_mode.py", "fssm_header.py", "lane_masks.py", "wave64_halves.py",
"wave64_emulate_opt.py", "spirv_loop_guard.py", "shader_meta.py", "spirv_stubs.py", "spirv_asm.py", "spirv_asm_tables.py",
"spirv_opt.py", "report_paths.py", "replace_retry.py", "fssm_unpack.py", "shader_stage_manifest.py",
"rdna2_decode.py", "rdna2_isa_tables.py", "gfx10_formats.json",
Expand Down Expand Up @@ -3191,9 +3199,10 @@ def main() -> int:
ap.add_argument("--compact-spirv", action="store_true",
help="run the translator's compact binary pass on all shader libraries (requires spirv-opt)")
ap.add_argument("--no-float-controls", action="store_true",
help="translate without SignedZeroInfNanPreserve and DenormPreserve (Depends on: #664), for "
"devices whose vk_pipeline_check skips a shader without "
"shaderSignedZeroInfNanPreserveFloat32 or shaderDenormPreserveFloat16")
help="translate without SignedZeroInfNanPreserve, DenormPreserve and DenormFlushToZero (Depends on: "
"#664), for devices whose vk_pipeline_check skips a shader without float-control properties")
ap.add_argument("--no-ftz32", action="store_true",
help="translate without DenormFlushToZero 32 (keep software f32 denormal flushes, e.g. llvmpipe)")
ap.add_argument("--bary-fallback", action="store_true",
help="translate raw barycentric reads from an interpolated vec3 input (with a pass-through "
"geometry shader the runtime draws), for devices without "
Expand All @@ -3211,6 +3220,10 @@ def main() -> int:
ap.add_argument("--native-mesh", action="store_true",
help="keep native mesh shaders on Intel's Windows Vulkan driver instead of turning on "
"--mesh-compute (for a driver that fixes BUILD-2202's crash)")
ap.add_argument("--integer-dot-fallback", action="store_true",
help="translate the 4x8-bit dot products (v_dot4_*) as extracts, multiplies and adds instead of "
"SPV_KHR_integer_dot_product; on by itself when the runtime's GPU has no "
"shaderIntegerDotProduct (a Vulkan 1.2 device)")
ap.add_argument("--pc-tail-ubo", action="store_true",
help="keep s0..s31 in 128 push-constant bytes and move heap/code base to a set-1 uniform "
"block; on by itself when the runtime's GPU reports maxPushConstantsSize below what "
Expand Down Expand Up @@ -3328,6 +3341,14 @@ def main() -> int:
log(f"shaders: the GPU the runtime would use reports maxPushConstantsSize = {max_pc} (< {need_pc}): "
"translating with --pc-tail-ubo")
a.pc_tail_ubo = True
if "shaders" in stages and not a.integer_dot_fallback:
integer_dot = runtime_gpu_integer_dot_product()
if integer_dot is False:
log("shaders: the GPU the runtime would use has no shaderIntegerDotProduct (a Vulkan 1.2 device): "
"translating with --integer-dot-fallback")
a.integer_dot_fallback = True
elif integer_dot is None:
a.integer_dot_fallback = keep_recorded_fallback("--integer-dot-fallback", work)
fallbacks = fallback_flags(a) if "shaders" in stages else ()
overlap = True
use_tui = leonida_tui.tui_eligible(a.no_tui)
Expand Down
Loading
Loading