Repository navigation
Conversation
|
Ran the lazy-target deferral tests at System
Results
What this adds Not tested AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - ran the commands above on this machine and wrote this report; no game data was used. |
A superseded target bound through a descriptor table is remapped when a draw or dispatch binds the table (xcl-dev#3179), but only the first 256 slots of each table were read. A view further in – a bindless SRV range, or a range at an explicit offset past slot 256 – was never seen: the target kept no tiles, its writes were dropped and its reads returned zeros. The root signature's SRV and UAV ranges of each descriptor table (RTS0 1.0 and 1.1, appended and unbounded ones included) are now kept in the layout, and the scan reads those ranges and nothing else. An unbounded range ends with the view heap the table lies in (console_heap::view_heap_remaining_slots); outside any view heap it has no known extent and is not read. CBV and sampler ranges cannot name a placed target and are skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
A note from reading #3443 (Lakanya, open) handles the same kind of fixed slot cap in the superseded-target scan: it records each table's declared SRV/UAV ranges ( AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash; I checked the lines above against the pinned commit. |
6a4c17f to
a2513de
Compare
Keep XCL_LAZY_TARGETS opt-in. Defer shared video-memory tiles for GPU-owned placed targets and map them before command-list or upload use. Track copied RTV and DSV handles while mapping is pending. Reject a command list if first use cannot allocate its tiles. Unmapped targets remain eligible for a retry after reset. Cover deferred allocation, first use, and submission refusal. Views bound through descriptor tables are looked for in every SRV/UAV range the root signature declares, with the range walk of xcl-dev#3443 (now for_each_declared_table_slot), not only in the first 64 slots of each table: a target bound further in would otherwise keep no tiles. Related to xcl-dev#3211 and xcl-dev#1773. Assisted-by: Antigravity (Gemini 4 Neon) Assisted-by: Codex (GPT-6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a2513de to
bdf38bf
Compare
|
Review (head bdf38bf, diff read, not a merge-check; draft, off by default (
Fine: off by default, with one relaxed atomic load per hook. Two threads mapping one target are serialised under AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Stacked on #3443: the lines shared with it are #3443's commit ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Queued an in-world A/B of this on an RTX 4080 16 GB: current AI use: Claude Code (Claude Opus 5.5). |
|
In-world result, RTX 4080 16 GB (621.40), current
So it saves about 1.1 GB of video memory (render-target pages 6.6 → 5.4 GB at the end of a run) but costs ~16 % presents/s here, where the card stays over budget either way. No device removal or crash. (An earlier pair at AI use: Claude Code (Claude Opus 5.5). |
Stacked on #3443; only the top commit (
bdf38bf4) belongs here.Adds opt-in
XCL_LAZY_TARGETS=1. GPU-owned placed targets bind their 64 KiB video-memory tiles at first use, so a title can create render targets without allocating tiles it may never use. Related to #3211 and #1773.What is in it
vram.rs. Bind the tiles before command-list or upload use.for_each_declared_table_slotinbind.rs), not only in the first 64 slots of each table. Test:lazy_targets_are_mapped_in_every_declared_table_range.README.md.Tested
6a4c17fd, the four-thread workspace run aborted in the PSO library tests on the test fixture address0x4332. The two-pass cache integration test failed once and passed on the repeat. The full library target passed on the main baseline. The parallel failure on the candidate remains unresolved.cargo test --offline --locked --workspace --no-fail-fast -j 4 -- --test-threads=1 --show-outputcompleted with 2,621 passed, 0 failed, 49 ignored, and 30 SKIPPED reports.SKIPPED). The command-list refusal test passed in both four-thread attempts.bdf38bf4(this commit on D3D12.X: look for superseded targets in every declared table range #3443's7afecf84):.\scripts\test.ps1(cargo test --workspace -- --test-threads=4) completed with 2,743 passed, 0 failed, 49 ignored, and 31 SKIPPED reports. The new table-range test fails when the old 64-slot walk is put back (it finds the view at slot 10, not the one at slot 100).cargo build --offline --locked --release -p xcl -j 4and 60 s ofscripts/smoke.ps1on titledc7b94e1for each configuration. On6a4c17fd, enabling the flag reduced local VRAM from 6,057 to 3,048 MB (−3,009 MB, −49.7%) and target-pool capacity from 3,584 to 576 MB at the final activity sample. The PR blocks below are frombdf38bf4, without input; on that run the flag lowered peak commit from 16,363 to 13,323 MB.Regression run
Main baseline
PR head with the flag off
PR head with the flag on
Not tested
AI use
Antigravity (Gemini 4 Neon) wrote the original implementation and GPU tests, and ran the initial benchmarks. Codex (GPT-6) reviewed it, implemented the allocation-failure handling and its regression test, ran the final tests and smoke checks, and edited this description. Claude Code (Claude Opus 5.5) moved the commit onto #3443, made the lazy-target scan walk the declared table ranges, added its test, reran the suite and the two PR smoke runs, and updated this description.