Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
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
b2c9695
Fix NVIDIA sparse arena, MSVC TLS callbacks, FTZ32 probe, teardown le…
aslan2142 Nov 28, 2026
6608722
Merge branch 'main' of https://github.com/ProjectLeonida/mandy into t…
aslan2142 Nov 28, 2026
eccc71b
Fix d3d12_m4_compute_async_small_waits deadlock, vk_presenter_sync wa…
aslan2142 Nov 28, 2026
9f7587e
tools: frame rate of a D3D12-runtime run by draws a frame, and two ru…
owenjbendon-creator Nov 28, 2026
016554b
d3d12_run_fps: no argument comes back in an error, frame lines only w…
owenjbendon-creator Nov 29, 2026
befe3aa
d3d12_run_fps: an error of argparse's own is rewritten from fixed tex…
owenjbendon-creator Nov 29, 2026
314b4e7
Merge upstream ProjectLeonida/mandy main (b589e0fe0) into round10 base
aslan2142 Nov 29, 2026
7ba5617
rendering(r1): fix read-only DSV HTILE layout, D16S8 SRVs, non-array …
aslan2142 Nov 28, 2026
7350c5d
rendering(r2): fix PSO read-only DSVs (U1b), T# zombie filter (T3), a…
aslan2142 Nov 29, 2026
eb1cf5e
rendering(r3): fix Blob A CB_TARGET_MASK (+0xcc), depth bias, T# bugs…
aslan2142 Nov 29, 2026
09c99e5
rendering(r4a): unpatch integer SV_Target exports (UINT/SINT) and upg…
aslan2142 Nov 29, 2026
484d983
rendering(r4b-rt): add VK_EXT_shader_image_atomic_int64 R64ui binding…
aslan2142 Nov 29, 2026
b3c8d1b
rendering(r4b-spv): fix wave32 s_mov_b64 vcc tuples, partial image_st…
aslan2142 Nov 29, 2026
0da4ca4
rendering(r5a): allow R16_UNORM UAV views on native D16_UNORM[_S8_UIN…
aslan2142 Nov 29, 2026
d88b2de
rendering(r5b): promote barrier+write shaders to VulkanMemoryModel wi…
aslan2142 Nov 29, 2026
b10cae3
rendering(r5c): guard V# s_buffer_load and buffer_* ops on SQ_RSRC_BU…
aslan2142 Nov 29, 2026
edcc7f3
rendering(r6a): forward CopyResourceX and mark GPU-copied placed Titl…
aslan2142 Nov 29, 2026
b620db4
rendering(r6b): use 16-byte descriptor stride for D3D12_DESCRIPTOR_HE…
aslan2142 Nov 29, 2026
85f806b
rendering(r8a): forward Xbox DispatchMesh (slot 129), queries (28-30)…
aslan2142 Nov 29, 2026
69b3780
d3d12/vulkan: enable partial-mip streaming with minLod clamp and acti…
aslan2142 Nov 29, 2026
399a5ea
d3d12/vulkan: implement Xbox OMSetSampleMaskX (slot 142) with runtime…
aslan2142 Nov 29, 2026
3b90604
Preserve all 32 bits in dynamic R32_UINT loads
sodove Nov 29, 2026
091bfa8
d3d12/vulkan(r9a): fix pending_stream dword6 refill, gpu_owned evicti…
aslan2142 Nov 29, 2026
cd5ee11
rdna2spirv(r9b): unconditional CS/MS LDS bounds, PS EarlyFragmentTest…
aslan2142 Nov 29, 2026
91b7d73
Merge pull request #1 from sodove/br/fix-dynamic-r32-uint
aslan2142 Nov 29, 2026
a58d22f
Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/renderi…
aslan2142 Nov 29, 2026
ce792f5
Preserve all 32 bits in dynamic R32_UINT loads
sodove Nov 29, 2026
6ebdee1
tests: honor GPU float32 flush-to-zero support in shader fixtures
aslan2142 Nov 29, 2026
3ef235a
d3d12/vulkan: rebind released sparse pages to shared zero page on AMD…
aslan2142 Nov 29, 2026
1589d2a
Merge PR #2566 head (91b7d7372, dynamic R32_UINT already applied in c…
aslan2142 Nov 29, 2026
ac93aac
d3d12: gate write_tsharp_index_words on in_known_heap during stream p…
aslan2142 Nov 29, 2026
f051ae5
d3d12/tests: fix Windows MSVC build, CopyMemory collision, copy parit…
aslan2142 Nov 29, 2026
eff4083
Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rende…
aslan2142 Nov 29, 2026
de1694c
test: wait for cycle-release gate fence advance in xs_proxy_mock_test
aslan2142 Nov 29, 2026
8db8335
tests/ci: fix llvmpipe skip on cs_w64x_dynamic_r32_uint, Set 0 bindin…
aslan2142 Nov 29, 2026
7b5cb29
tests: include set-0 binding 29 (r64ui) capacity in test_spirv_metal_…
aslan2142 Nov 29, 2026
2a4b878
progress_dashboard: reject non-JUnit XML reports
bimo0o Nov 26, 2026
cfd12b2
d3d12: default descriptor table layout to tagged when no shader libra…
aslan2142 Nov 29, 2026
71db4c4
test(semantic): align computed-I/J f16 interp oracle with toward-zero…
zmasi Nov 29, 2026
1d0867c
runtime: zero-init TargetView trailing padding and allow clamped 0 ms…
aslan2142 Nov 29, 2026
eade956
tests: raise kHeavyTurns in vk_gpu_profile_test and synchronize lock_…
aslan2142 Nov 29, 2026
22e1349
test(submit_frame): yield until steady_clock advances in WorkerScope …
aslan2142 Nov 29, 2026
1786d7a
docs: table of which imported GDK names have a public page (DOCS-GDK-…
OreoFR Nov 29, 2026
fb163d9
scripts: launch Windows compute workers with sys._base_executable (CO…
bobcatchris Nov 29, 2026
1aefed0
runtime: fix present_mutex AB-BA deadlock, cross-queue relay cycle, a…
aslan2142 Nov 30, 2026
45df09b
chore: remove 13 dead one-off scripts, fix /home/nolan test paths, dr…
aslan2142 Nov 30, 2026
3d239ce
d3d12: forget write-combined and GPU read-only regions over a release…
Kal0s-design Nov 30, 2026
c717967
test(semantic): align computed-I/J f16 interp oracle with toward-zero…
zmasi Nov 29, 2026
171af5d
Merge pull request #2633 from aegish-zagi/fix/test-interp-computed-ij…
aslan2142 Nov 30, 2026
589b2d2
docs: how to measure the D3D12 runtime's frame rates, and its LEONIDA…
MoonEyes Nov 30, 2026
4014af7
Merge pull request #2704 from aslan2142/chore/tier2a-python-cleanup
aslan2142 Nov 30, 2026
efc1929
runtime: eliminate Windows 11 full-space commit_pages_locked broadcas…
aslan2142 Nov 30, 2026
b8508a9
Merge branch 'main' of https://github.com/ProjectLeonida/mandy into f…
aslan2142 Nov 30, 2026
8f374d2
Merge remote-tracking branch 'origin/main' into docs/d3d12-measuring
MoonEyes Nov 30, 2026
f98f497
docs: what the judge of the switches page found
MoonEyes Nov 30, 2026
bf85962
docs: say what the count of the switches page counts
MoonEyes Nov 30, 2026
70ea7d6
docs: document LEONIDA_TITLE_STREAM_BUDGET_MB in docs/d3d12_vulkan.md
aslan2142 Nov 30, 2026
6dec360
Merge pull request #2625 from bimo0o/dash-junit-root-v2
MoonEyes Nov 30, 2026
a4300e3
Merge pull request #2594 from owenjbendon-creator/tools-d3d12-run-fps
MoonEyes Nov 30, 2026
1b0f657
Merge pull request #2655 from OreoFR/docs/gdk-public-pages
MoonEyes Nov 30, 2026
454df8e
Merge pull request #2678 from bobcatchris/fix/compute-workers-win-venv
MoonEyes Nov 30, 2026
4c13169
Merge remote-tracking branch 'origin/main' into docs/d3d12-measuring
MoonEyes Nov 30, 2026
6a321e5
tools: d3d12_switches and d3d12_run_fps set errors=replace on stdout
MoonEyes Nov 30, 2026
012b79a
Merge pull request #2566 from aslan2142/integration/perf-cpu-gpu-r6
aslan2142 Nov 30, 2026
0568cd6
Merge pull request #2708 from MoonEyes/docs/d3d12-measuring
MoonEyes Nov 30, 2026
d367675
d3d12: index heap buffer spans as slots change (on in play-nvidia)
ubiquitarianism Nov 30, 2026
4639956
Merge main (d367675c7) into fix/wc-regions-on-release
Kal0s-design Nov 30, 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
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ loader that maps the game's executable and resolves its imports to shims. Nothin
- The format or behaviour may already be measured in `docs/design.md`. Quote the file and offset a claim comes from,
or call it a hypothesis.
- Count over the whole corpus, not a sample: a rule that holds for 400 shaders can fail on the other 26 000.
- Frame rates of the D3D12 runtime (`d3d12/`): search [d3d12/docs/findings.md](d3d12/docs/findings.md) for the switch or
function before measuring it, and measure as [docs/measuring_fps.md](docs/measuring_fps.md) says (a switch by turns
inside one run). The variables are listed in [d3d12/docs/switches.md](d3d12/docs/switches.md).

## Test without the game first

Expand Down
182 changes: 170 additions & 12 deletions d3d12/crates/leonida-gpu/src/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1621,11 +1621,153 @@ impl<T> SweepRanges<T> {
}
}

mod heap_sweep;
#[cfg(test)]
mod heap_sweep_tests;

/// The selected backend owns the observed slots for a descriptor heap.
enum SweepState<T> {
Legacy(SweepRanges<T>),
Indexed(heap_sweep::IndexedSweep<T>),
}

impl<T> SweepState<T> {
fn new(indexed: bool) -> Self {
if indexed {
Self::Indexed(Default::default())
} else {
Self::Legacy(Default::default())
}
}

fn clear(&mut self) {
match self {
Self::Legacy(sweep) => sweep.clear(),
Self::Indexed(sweep) => sweep.clear(),
}
}

fn forget_part(&mut self, part: u32) {
match self {
Self::Legacy(sweep) => sweep.forget_part(part),
Self::Indexed(sweep) => sweep.forget_part(part),
}
}

fn set(&mut self, slot: u32, range: Option<Span<T>>) {
match self {
Self::Legacy(sweep) => sweep.set(slot, range),
Self::Indexed(sweep) => sweep.set(slot, range),
}
}

/// At a phase transition, transfer the ranges already observed while the
/// heap's sweep lock is held. The next pass consumes only its usual
/// changed slots. No descriptor is reread and the round stays in step.
#[cfg(any(test, feature = "diagnostics"))]
fn change_backend(&mut self, indexed: bool) {
if matches!(self, Self::Indexed(_)) == indexed {
return;
}
#[cfg(feature = "diagnostics")]
let began = std::time::Instant::now();
let mut next = Self::new(indexed);
match self {
Self::Legacy(sweep) => {
for (slot, range) in sweep.ranges.0.iter_mut().enumerate() {
if let Some(range) = range.take() {
next.set(slot as u32, Some(range));
}
}
}
Self::Indexed(sweep) => sweep.take_slots(|slot, range| next.set(slot, Some(range))),
}
*self = next;
#[cfg(feature = "diagnostics")]
tracing::info!(indexed, ms = began.elapsed().as_secs_f64() * 1000.0, "heap span backend changed for a timing turn");
}

fn snapshot(&mut self) -> SweepSnapshot<'_, T> {
match self {
Self::Legacy(sweep) => {
let (spans, views) = sweep.spans();
SweepSnapshot::Legacy { spans, views }
}
Self::Indexed(sweep) => {
sweep.finish();
SweepSnapshot::Indexed(sweep)
}
}
}
}

/// The older sweep experiment needs the legacy backend in both of its phases.
fn indexed_sweep_allowed(
requested: bool,
legacy_in_ab: impl FnOnce() -> bool,
legacy_enabled: impl FnOnce() -> bool,
) -> bool {
requested && !legacy_in_ab() && legacy_enabled()
}

fn sweep_spans_in_ab() -> bool {
#[cfg(feature = "diagnostics")]
{
crate::ab::bit("LEONIDA_SWEEP_SPANS").is_some()
}
#[cfg(not(feature = "diagnostics"))]
{
false
}
}

impl<T> Default for SweepState<T> {
fn default() -> Self {
static INDEXED: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
Self::new(*INDEXED.get_or_init(|| {
let requested = crate::switch::on("LEONIDA_INDEX_HEAP_SPANS");
let indexed = indexed_sweep_allowed(requested, sweep_spans_in_ab, sweep_spans);
if requested {
let backend = if indexed { "indexed" } else { "legacy" };
tracing::info!(backend, "heap buffer span sweep backend selected");
}
indexed
}))
}
}

/// Both paths emit the same span per live copy at the same point in the
/// deferred list. Ordering within this group is unspecified: the legacy
/// snapshot is a hash table and a refresh reads source bytes into its own copy.
enum SweepSnapshot<'a, T> {
Legacy {
spans: crate::host::ByCopy<Span<T>>,
views: u32,
},
Indexed(&'a heap_sweep::IndexedSweep<T>),
}

impl<T> SweepSnapshot<'_, T> {
fn counts(&self) -> (usize, u32) {
match self {
Self::Legacy { spans, views } => (spans.len(), *views),
Self::Indexed(sweep) => (sweep.len(), sweep.views()),
}
}

fn for_each(&self, visit: impl FnMut(&Span<T>)) {
match self {
Self::Legacy { spans, .. } => spans.values().for_each(visit),
Self::Indexed(sweep) => sweep.values().for_each(visit),
}
}
}

/// Descriptor-derived references belong to the heap that produced them.
#[derive(Default)]
pub(crate) struct BufferSweep {
passes: u64,
ranges: SweepRanges<crate::shadow::Shadow>,
ranges: SweepState<crate::shadow::Shadow>,
// Last refresh frame and covered interval for throttled, unwatched copies.
unwatched: std::collections::HashMap<u64, (u64, u64, u64)>,
}
Expand Down Expand Up @@ -2079,6 +2221,10 @@ fn heap_buffer_pass(heap: &crate::descriptor::Heap, host: &crate::descriptor::ho
// released resource goes stale without a write, and a slot written
// before its memory had a host copy is only made then.
let mut kept = host.buffer_sweep.lock().unwrap_or_else(|e| e.into_inner());
#[cfg(feature = "diagnostics")]
if let Some(indexed) = crate::ab::pick("LEONIDA_INDEX_HEAP_SPANS") {
kept.ranges.change_backend(indexed_sweep_allowed(indexed, sweep_spans_in_ab, sweep_spans));
}
let changed = host.buffer_changes();
let all = kept.passes == 0 || (kept.passes % HEAP_ROUND == 0 && !heap_spread());
let slots = if all {
Expand Down Expand Up @@ -2172,8 +2318,11 @@ fn heap_buffer_pass(heap: &crate::descriptor::Heap, host: &crate::descriptor::ho
#[cfg(feature = "diagnostics")]
let looked = std::time::Instant::now();
// Per host copy, the span its picked views cover ([`sweep_spans`]).
let (spans, views) = kept.ranges.spans();
let bytes: u64 = spans.values().map(|s| s.2 - s.1).sum();
let BufferSweep {
ranges, unwatched, ..
} = &mut *kept;
let spans = ranges.snapshot();
let (copies, views) = spans.counts();
// Memory that is not write-watched is copied whole by every refresh.
// It was once refreshed only every 120 frames (unmapped pages read
// one by one cost 14 GB a frame in run 11, before they were
Expand All @@ -2183,24 +2332,33 @@ fn heap_buffer_pass(heap: &crate::descriptor::Heap, host: &crate::descriptor::ho
// costs some 30 ms a frame this way.
static EVERY: std::sync::OnceLock<u64> = std::sync::OnceLock::new();
let every = *EVERY.get_or_init(|| {
std::env::var("LEONIDA_UNWATCHED_FRAMES").ok().and_then(|v| v.parse().ok()).unwrap_or(1)
std::env::var("LEONIDA_UNWATCHED_FRAMES")
.ok()
.and_then(|v| v.parse().ok())
.unwrap_or(1)
});
let mut found = Vec::with_capacity(spans.len());
let mut found = Vec::with_capacity(copies);
let mut bytes = 0;
let mut next_unwatched = std::collections::HashMap::new();
for (shadow, from, to) in spans.values() {
spans.for_each(|(shadow, from, to)| {
bytes += to - from;
if every > 1 && shadow.unwatched() {
let id = shadow.id();
if let Some(&(last, low, high)) = kept.unwatched.get(&id)
&& frame >= last && frame - last < every && low <= *from && *to <= high
if let Some(&(last, low, high)) = unwatched.get(&id)
&& frame >= last
&& frame - last < every
&& low <= *from
&& *to <= high
{
next_unwatched.insert(id, (last, low, high));
continue;
return;
}
next_unwatched.insert(id, (frame, *from, *to));
}
found.push((shadow.clone(), *from, (*to).min(*from + shadow.left(*from))));
}
kept.unwatched = next_unwatched;
});
drop(spans);
*unwatched = next_unwatched;
drop(kept);
#[cfg(feature = "diagnostics")]
let refreshed = std::time::Instant::now();
Expand All @@ -2217,7 +2375,7 @@ fn heap_buffer_pass(heap: &crate::descriptor::Heap, host: &crate::descriptor::ho
tracing::info!(
slots = slots.len(),
views,
copies = spans.len(),
copies,
mb = bytes >> 20,
ms = started.elapsed().as_millis(),
"buffer views of the heap made ready for shaders that pick them by index"
Expand Down
Loading