D3D12.X: lower default watch gap to 4 MiB and add adaptive hot-block retention #3649

Open
iggyvilla wants to merge 1 commit from upstream-pr/3649 into amd-dev
iggyvilla commented 2026-12-02 03:40:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-12-02T03:40:49Z.


TL;DR — Before vs After

Aspect Before (#3649 v1 / amd-dev 41aa60ce) After (#3649 split Part 1: amd-watch-tight-hot)
Scope & size 307 lines across 3 files combining range-granularity, exact coherent UMA spans, gap default, and adaptive hot retention +89/-26 lines in 1 file (title_textures.rs), strictly hot-block retention + default hot gap; range-building changes split into a separate standalone PR
Default XCL_WATCH_GAP_MB 64 MiB (bridges up to 64 MiB of untouched cold memory into one GetWriteWatch call) 4 MiB (matches ~4–6 MiB per-call walk breakeven; overridable via XCL_WATCH_GAP_MB)
Hot-block retention (HotBlocks) Uniform 1500 ms (XCL_WATCH_HOT_MS) for newly mapped, marked, walked, and write-once blocks Two-tier: 150 ms (XCL_WATCH_HOT_BRIEF_MS) until written across >= 2 distinct looks, then promoted to 1500 ms (XCL_WATCH_HOT_MS)
60 s smoke (RX 6650 XT, amd-dev 41aa60ce) 1654 frames (60 61 60, 15902 MB) 1642 frames (60 60 60, 16410 MB, 0 removals, 0 crashes)

What is in it
Split out from the earlier #3649 bundle so hot-block scan retention and gap coalescing can be reviewed, measured, and bisected independently from watch-range construction:

  • Lowers the default XCL_WATCH_GAP_MB in hot_gap() from 64 MiB to 4 MiB so hot_runs stops bridging tens of megabytes of untouched cold memory between hot 2 MiB blocks into one GetWriteWatch call.
  • Replaces HotBlocks::hot's (Instant, u8) value with HotEntry { at, why, writes } and two-tier retention (retain_hot / record_hot_written): newly mapped (HOT_NEW), marked (HOT_MARKED), walked (HOT_WALKED), or write-once blocks expire after XCL_WATCH_HOT_BRIEF_MS (default 150 ms), while blocks written across >= 2 distinct looks promote to XCL_WATCH_HOT_MS (default 1500 ms).
  • Adds unit test hot_blocks_cool_briefly_until_written_across_two_looks.
  • The 2 MiB coarse / shown_blocks granularity and call-budgeted coherent-UMA spans (using plan_watch_ranges) are split into a separate standalone PR on amd-dev.

Tested

  • Hardware: AMD Radeon RX 6650 XT (Windows 11, release build).
  • Targeted unit test (cargo test -p xcl --lib -- hot_blocks_cool_briefly_until_written_across_two_looks): 1 passed, 0 failed.
  • Whole-workspace GPU suite (cargo test --workspace --no-fail-fast -- --test-threads=4): 2,957 passed, 15 pre-existing failed, 49 ignored (same pre-existing failures as clean origin/amd-dev 41aa60ce: 3 RDNA2 f32/NaN tests, 6 parallel sparse/title_textures contention tests, 4 e2e debug-layer/title tests, 2 two_pass_driver_cache tests).
  • Release build (cargo build --release -p xcl): succeeded cleanly.

Regression run
Baseline (origin/main d8bd9a38):

xcl-smoke v1
commit: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0
gpu: AMD Radeon RX 6650 XT
title: 1778c2d9
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15479 MB

Baseline (origin/amd-dev 41aa60ce):

xcl-smoke v1
commit: 41aa60ce842060a597b7e8724896f7bf6a031af5
gpu: AMD Radeon RX 6650 XT
title: 1778c2d9
seconds: 60
exit: 0x0
frames shown: 1654 (PresentX 1654)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 15902 MB

PR head (b1c4ef5a):

xcl-smoke v1
commit: b1c4ef5ad1bec48af524544ec13781cda663fb56
gpu: AMD Radeon RX 6650 XT
title: 1778c2d9
seconds: 60
exit: 0x0
frames shown: 1642 (PresentX 1642)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16410 MB

Not tested

  • NVIDIA and Intel GPUs, and Wine.

AI use

  • Antigravity (Gemini) split this PR out of the previous #3649 bundle, ran the unit/workspace tests and 60 s smoke on local AMD hardware, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5599363020 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-12-02T03:40:49Z. --- ### TL;DR — Before vs After | Aspect | Before (`#3649` v1 / `amd-dev` `41aa60ce`) | After (`#3649` split Part 1: `amd-watch-tight-hot`) | | --- | --- | --- | | Scope & size | 307 lines across 3 files combining range-granularity, exact coherent UMA spans, gap default, and adaptive hot retention | **+89/-26 lines in 1 file** (`title_textures.rs`), strictly hot-block retention + default hot gap; range-building changes split into a separate standalone PR | | Default `XCL_WATCH_GAP_MB` | `64` MiB (bridges up to 64 MiB of untouched cold memory into one `GetWriteWatch` call) | `4` MiB (matches ~4–6 MiB per-call walk breakeven; overridable via `XCL_WATCH_GAP_MB`) | | Hot-block retention (`HotBlocks`) | Uniform `1500 ms` (`XCL_WATCH_HOT_MS`) for newly mapped, marked, walked, and write-once blocks | Two-tier: `150 ms` (`XCL_WATCH_HOT_BRIEF_MS`) until written across `>= 2` distinct looks, then promoted to `1500 ms` (`XCL_WATCH_HOT_MS`) | | 60 s smoke (`RX 6650 XT`, `amd-dev` `41aa60ce`) | `1654` frames (`60 61 60`, `15902 MB`) | `1642` frames (`60 60 60`, `16410 MB`, 0 removals, 0 crashes) | **What is in it** Split out from the earlier #3649 bundle so hot-block scan retention and gap coalescing can be reviewed, measured, and bisected independently from watch-range construction: - Lowers the default `XCL_WATCH_GAP_MB` in `hot_gap()` from `64` MiB to `4` MiB so `hot_runs` stops bridging tens of megabytes of untouched cold memory between hot 2 MiB blocks into one `GetWriteWatch` call. - Replaces `HotBlocks::hot`'s `(Instant, u8)` value with `HotEntry { at, why, writes }` and two-tier retention (`retain_hot` / `record_hot_written`): newly mapped (`HOT_NEW`), marked (`HOT_MARKED`), walked (`HOT_WALKED`), or write-once blocks expire after `XCL_WATCH_HOT_BRIEF_MS` (default `150 ms`), while blocks written across `>= 2` distinct looks promote to `XCL_WATCH_HOT_MS` (default `1500 ms`). - Adds unit test `hot_blocks_cool_briefly_until_written_across_two_looks`. - The 2 MiB `coarse` / `shown_blocks` granularity and call-budgeted coherent-UMA spans (using `plan_watch_ranges`) are split into a separate standalone PR on `amd-dev`. **Tested** - Hardware: AMD Radeon RX 6650 XT (Windows 11, release build). - Targeted unit test (`cargo test -p xcl --lib -- hot_blocks_cool_briefly_until_written_across_two_looks`): **1 passed, 0 failed**. - Whole-workspace GPU suite (`cargo test --workspace --no-fail-fast -- --test-threads=4`): **2,957 passed, 15 pre-existing failed, 49 ignored** (same pre-existing failures as clean `origin/amd-dev` `41aa60ce`: 3 RDNA2 f32/NaN tests, 6 parallel `sparse`/`title_textures` contention tests, 4 `e2e` debug-layer/title tests, 2 `two_pass_driver_cache` tests). - Release build (`cargo build --release -p xcl`): succeeded cleanly. **Regression run** Baseline (`origin/main` `d8bd9a38`): ``` xcl-smoke v1 commit: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0 gpu: AMD Radeon RX 6650 XT title: 1778c2d9 seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15479 MB ``` Baseline (`origin/amd-dev` `41aa60ce`): ``` xcl-smoke v1 commit: 41aa60ce842060a597b7e8724896f7bf6a031af5 gpu: AMD Radeon RX 6650 XT title: 1778c2d9 seconds: 60 exit: 0x0 frames shown: 1654 (PresentX 1654) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 15902 MB ``` PR head (`b1c4ef5a`): ``` xcl-smoke v1 commit: b1c4ef5ad1bec48af524544ec13781cda663fb56 gpu: AMD Radeon RX 6650 XT title: 1778c2d9 seconds: 60 exit: 0x0 frames shown: 1642 (PresentX 1642) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16410 MB ``` **Not tested** - NVIDIA and Intel GPUs, and Wine. **AI use** - Antigravity (Gemini) split this PR out of the previous #3649 bundle, ran the unit/workspace tests and 60 s smoke on local AMD hardware, and wrote this description.
Foniass commented 2026-12-02 03:48:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T03:48:20Z.


Review (head b602d70e, diff read, not a merge-check):

  • Coherent UMA is now watched one texture at a time, with no call budget. cached_watch_ranges (title_textures.rs ~1854-1898) watches unshadowed committed UMA through coh_spans with gap = 0, so each texture span that does not touch another becomes its own range, and hot_runs (~2301) merges only inside one range: a hot 2 MiB block holding N small textures costs N GetWriteWatch calls per look, and with XCL_WATCH_HOT=0 every span costs one. watch_blocks (~302) also bumps COARSE_GEN for every new span, so each texture placed in committed UMA throws away and rebuilds the range cache. The comment this PR removes ("by 16 MiB blocks, not by texture: a title has tens of thousands, and their sources change every submit while it loads") describes this cost; the numbers in the description are from one title in-world, with no loading phase and no call count. The existing plan_watch_ranges(regions, wanted, target_calls) already merges exact spans down to a call budget.
  • Several independent changes, all on by default. The PR changes the Table::coarse / mirrors::shown_blocks granularity (16 to 2 MiB), exact coh_spans in coherent UMA, the default hot_gap (64 to 4 MiB), and adds the two-tier HotEntry retention (XCL_WATCH_HOT_BRIEF_MS, ~2188-2234). The retention does not touch how ranges are built and the gap default is a one-liner; exact spans and 2 MiB blocks have no switch. Separately they would be measurable and bisectable.
  • The new range-building logic has no test. The three new tests reach add_coh_span / remove_coh_span and the existing gap merge, but nothing tests the exact_coh split in cached_watch_ranges, skipping coarse blocks in committed windows, shown_blocks going to the gap-0 set, the fallback when u.shadowed() or bvh_want::watching() is true, or that watch_blocks / unwatch_blocks add a span only in a committed window. A mistake there leaves CPU texture writes in coherent UMA unwatched.
  • The regression run's base is not the PR's base. The base xcl-smoke block is d8bd9a38 on main, 306 commits behind this PR's merge base on amd-dev (41aa60ce), so the 1618 vs 1653 frames include unrelated changes.

Fine: coh_spans changes only through watch_blocks / unwatch_blocks, so its refcounts stay balanced with coarse; bvh_want::watching() in watch_key invalidates the cache when it flips; the gap-0 merge joins only spans that touch. The description says this stacks cleanly with #3639, but both change the same hot_for retain hunk in title_textures.rs, so whichever lands second has a (small) conflict.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7334256355 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7334256355). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T03:48:20Z. --- Review (head b602d70e, diff read, not a merge-check): - **Coherent UMA is now watched one texture at a time, with no call budget.** `cached_watch_ranges` (`title_textures.rs` ~1854-1898) watches unshadowed committed UMA through `coh_spans` with `gap = 0`, so each texture span that does not touch another becomes its own range, and `hot_runs` (~2301) merges only inside one range: a hot 2 MiB block holding N small textures costs N `GetWriteWatch` calls per look, and with `XCL_WATCH_HOT=0` every span costs one. `watch_blocks` (~302) also bumps `COARSE_GEN` for every new span, so each texture placed in committed UMA throws away and rebuilds the range cache. The comment this PR removes ("by 16 MiB blocks, not by texture: a title has tens of thousands, and their sources change every submit while it loads") describes this cost; the numbers in the description are from one title in-world, with no loading phase and no call count. The existing `plan_watch_ranges(regions, wanted, target_calls)` already merges exact spans down to a call budget. - **Several independent changes, all on by default.** The PR changes the `Table::coarse` / `mirrors::shown_blocks` granularity (16 to 2 MiB), exact `coh_spans` in coherent UMA, the default `hot_gap` (64 to 4 MiB), and adds the two-tier `HotEntry` retention (`XCL_WATCH_HOT_BRIEF_MS`, ~2188-2234). The retention does not touch how ranges are built and the gap default is a one-liner; exact spans and 2 MiB blocks have no switch. Separately they would be measurable and bisectable. - **The new range-building logic has no test.** The three new tests reach `add_coh_span` / `remove_coh_span` and the existing gap merge, but nothing tests the `exact_coh` split in `cached_watch_ranges`, skipping coarse blocks in committed windows, `shown_blocks` going to the gap-0 set, the fallback when `u.shadowed()` or `bvh_want::watching()` is true, or that `watch_blocks` / `unwatch_blocks` add a span only in a committed window. A mistake there leaves CPU texture writes in coherent UMA unwatched. - **The regression run's base is not the PR's base.** The base `xcl-smoke` block is `d8bd9a38` on `main`, 306 commits behind this PR's merge base on `amd-dev` (`41aa60ce`), so the 1618 vs 1653 frames include unrelated changes. Fine: `coh_spans` changes only through `watch_blocks` / `unwatch_blocks`, so its refcounts stay balanced with `coarse`; `bvh_want::watching()` in `watch_key` invalidates the cache when it flips; the gap-0 merge joins only spans that touch. The description says this stacks cleanly with #3639, but both change the same `hot_for` retain hunk in `title_textures.rs`, so whichever lands second has a (small) conflict. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
iggyvilla commented 2026-12-02 07:29:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-12-02T07:29:23Z.


Thanks for the detailed review! Addressed all points by splitting #3649 into two small, independent PRs on amd-dev (41aa60ce):

  1. This PR (#3649, +89/-26 in title_textures.rs): strictly the XCL_WATCH_GAP_MB default (64 -> 4 MiB) and two-tier adaptive HotEntry retention (XCL_WATCH_HOT_BRIEF_MS, default 150 ms, promoting at >= 2 distinct write looks), plus the amd-dev 41aa60ce baseline smoke block alongside origin/main d8bd9a38.
  2. Separate standalone PR (amd-watch-tight-ranges, opening next): the 2 MiB Table::coarse / shown_blocks granularity and coh_spans for committed UMA — updated to bound coherent-UMA calls through the existing plan_watch_ranges(..., COH_WATCH_CALLS) instead of unbounded gap = 0 calls, and backed by unit tests covering the exact_coh split, skipping coarse in committed UMA, shown_blocks routing, shadowed/bvh_want::watching() fallback, watch_blocks/unwatch_blocks committed-window gating, and call-budget merging.
<!-- greyfinch-sync:ivall/xcl:comment:7338246286 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7338246286). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-12-02T07:29:23Z. --- Thanks for the detailed review! Addressed all points by splitting #3649 into two small, independent PRs on `amd-dev` (`41aa60ce`): 1. **This PR (#3649, `+89/-26` in `title_textures.rs`):** strictly the `XCL_WATCH_GAP_MB` default (`64 -> 4 MiB`) and two-tier adaptive `HotEntry` retention (`XCL_WATCH_HOT_BRIEF_MS`, default `150 ms`, promoting at `>= 2` distinct write looks), plus the `amd-dev` `41aa60ce` baseline smoke block alongside `origin/main` `d8bd9a38`. 2. **Separate standalone PR (`amd-watch-tight-ranges`, opening next):** the 2 MiB `Table::coarse` / `shown_blocks` granularity and `coh_spans` for committed UMA — updated to bound coherent-UMA calls through the existing `plan_watch_ranges(..., COH_WATCH_CALLS)` instead of unbounded `gap = 0` calls, and backed by unit tests covering the `exact_coh` split, skipping coarse in committed UMA, `shown_blocks` routing, `shadowed`/`bvh_want::watching()` fallback, `watch_blocks`/`unwatch_blocks` committed-window gating, and call-budget merging.
Foniass commented 2026-12-02 07:34:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T07:34:08Z.


Follow-up review (head b1c4ef5a, since b602d70e, diff read, not a merge-check):

  • Per-texture coherent-UMA spans with no call budget: fixed here; coh_spans, exact_coh, kernelx.rs and bvh_want.rs are no longer touched (the description says that part moves to a PR using plan_watch_ranges, not open yet).
  • No test of the new range-building logic: fixed by removal; hot_blocks_cool_briefly_until_written_across_two_looks (~6663) tests record_hot_written and retain_hot, though the call-site changes (hot_runs ~2196, mark_hot ~2547) have none.
  • Smoke base not the PR's base: fixed; the base block is on amd-dev 41aa60ce.
  • Conflict with #3639: fixed for #3639; #3676 now conflicts with this head in title_textures.rs (hot_runs / refresh_hot, mark_hot).
  • Several independent changes, all on by default: partly fixed. The gap default (hot_gap, ~2088) and the two-tier retention (~2099-2145) are still one commit and both on by default; XCL_WATCH_GAP_MB=64 / XCL_WATCH_HOT_BRIEF_MS=1500 restore the old values, but they cannot be bisected apart.

New:

  • The 4 MiB gap undoes 9acc0314 without measuring its reason. That commit raised XCL_WATCH_GAP_MB from 4 to 64 MiB because "a call waits for the process's memory lock, which is busy while the title loads". This PR (~2084-2088) goes back to 4 MiB with one 60 s smoke run of frame counts as evidence, and no call count or look time while the title loads (XCL_LOOK_STATS), the case the 64 MiB was set for.
  • New and placed memory goes back to the walk after 150 ms. mark_hot after a texture is placed (~891, "the data the title is about to write there is for the next submit") now lasts only brief_hot_for, so a texture filled more than 150 ms after it was placed, common while loading, sits in a cold block until the walk finds its write, and the submits before that use old contents; all_hot (~3529) is also false more often, so written_pages adds GetWriteWatch calls per texture on the submit path (~3582). No walk_stale or look-stats numbers are given.
  • A hot block is no longer refreshed when memory is newly mapped into it. hot_runs (~2196) changed insert to entry().or_insert, so a block with writes < 2 keeps its old at and can expire milliseconds after the mapping, where the base kept it for hot_for ("memory just mapped is often written and used at once").

Fine: record_hot_written counts a block once per look, retain_hot caps the brief window at the long one, writes saturates, the walk still inserts only vacant blocks, and mark_hot keeps a promoted block in the long tier.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7338340399 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7338340399). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T07:34:08Z. --- Follow-up review (head b1c4ef5a, since b602d70e, diff read, not a merge-check): - **Per-texture coherent-UMA spans with no call budget:** fixed here; `coh_spans`, `exact_coh`, `kernelx.rs` and `bvh_want.rs` are no longer touched (the description says that part moves to a PR using `plan_watch_ranges`, not open yet). - **No test of the new range-building logic:** fixed by removal; `hot_blocks_cool_briefly_until_written_across_two_looks` (~6663) tests `record_hot_written` and `retain_hot`, though the call-site changes (`hot_runs` ~2196, `mark_hot` ~2547) have none. - **Smoke base not the PR's base:** fixed; the base block is on `amd-dev` `41aa60ce`. - **Conflict with #3639:** fixed for #3639; #3676 now conflicts with this head in `title_textures.rs` (`hot_runs` / `refresh_hot`, `mark_hot`). - **Several independent changes, all on by default:** partly fixed. The gap default (`hot_gap`, ~2088) and the two-tier retention (~2099-2145) are still one commit and both on by default; `XCL_WATCH_GAP_MB=64` / `XCL_WATCH_HOT_BRIEF_MS=1500` restore the old values, but they cannot be bisected apart. New: - **The 4 MiB gap undoes 9acc0314 without measuring its reason.** That commit raised `XCL_WATCH_GAP_MB` from 4 to 64 MiB because "a call waits for the process's memory lock, which is busy while the title loads". This PR (~2084-2088) goes back to 4 MiB with one 60 s smoke run of frame counts as evidence, and no call count or look time while the title loads (`XCL_LOOK_STATS`), the case the 64 MiB was set for. - **New and placed memory goes back to the walk after 150 ms.** `mark_hot` after a texture is placed (~891, "the data the title is about to write there is for the next submit") now lasts only `brief_hot_for`, so a texture filled more than 150 ms after it was placed, common while loading, sits in a cold block until the walk finds its write, and the submits before that use old contents; `all_hot` (~3529) is also false more often, so `written_pages` adds `GetWriteWatch` calls per texture on the submit path (~3582). No `walk_stale` or look-stats numbers are given. - **A hot block is no longer refreshed when memory is newly mapped into it.** `hot_runs` (~2196) changed `insert` to `entry().or_insert`, so a block with `writes < 2` keeps its old `at` and can expire milliseconds after the mapping, where the base kept it for `hot_for` ("memory just mapped is often written and used at once"). Fine: `record_hot_written` counts a block once per look, `retain_hot` caps the brief window at the long one, `writes` saturates, the walk still inserts only vacant blocks, and `mark_hot` keeps a promoted block in the long tier. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-02 12:35:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T12:35:52Z.


merge-check
base: 41aa60ce84
head: b1c4ef5ad1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2961 passed, 10 failed, 49 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on amd-dev); failing: gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, gpu::recomp::tests::gpu_fract_f32_edges, hle::d3d12x::sparse::tests::private_physical_pages_reach_the_gpu_on_mapping, hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, hle::d3d12x::title_textures::tests::remapped_pages_are_compared_with_what_they_held, hle::d3d12x::title_textures::tests::stream_recheck_keeps_the_whole_upload_baseline_over_partial_uploads, hle::d3d12x::title_textures::tests::stream_recheck_partial_upload_without_an_entry_queues_a_whole_upload, hle::d3d12x::title_textures::tests::stream_recheck_schedule_catches_late_writes_and_resets_milestones, test_title_runs_and_game_folder_is_untouched (all but test_title_runs_and_game_folder_is_untouched fail on amd-dev 41aa60ce alone on this card; that one fails because of this PR, in both runs of this merge)
review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7338340399 and its findings stand. Most serious: by default hot_gap goes from 64 back to 4 MiB (~2088), undoing 9acc0314 without measuring the load-time case, and the 150 ms brief-hot tier lets a placed texture cool in 150 ms (stale texture risk on the default path).
performance: 60 s smoke of a retail title, amd-dev 41aa60ce vs this merge (b1c4ef5a): 1671 -> 1675 frames shown (100 %; last presents per 2 s: 60 60 60), peak commit 16722 -> 17366 MB, 0 device removals, 0 crashes. The smoke run is from the first of the two runs; the second ran the suite only.
verdict: not yet: the e2e test title fails in both runs of this merge and passes on amd-dev alone: [FAIL] D3D12.X: async ring-buffered sparse uploads (80 MiB across 20 submits + reused-tile zeroing): submit 9 tail mismatch: got 0x0, want 0xa50ffff9, i.e. an upload's data is missing, which fits the review's point that the shorter hot window lets just-written blocks cool too soon; also hot_gap going back to 4 MiB by default is unmeasured
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7345577983 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7345577983). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T12:35:52Z. --- merge-check base: 41aa60ce842060a597b7e8724896f7bf6a031af5 head: b1c4ef5ad1bec48af524544ec13781cda663fb56 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2961 passed, 10 failed, 49 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on amd-dev); failing: gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, gpu::recomp::tests::gpu_fract_f32_edges, hle::d3d12x::sparse::tests::private_physical_pages_reach_the_gpu_on_mapping, hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, hle::d3d12x::title_textures::tests::remapped_pages_are_compared_with_what_they_held, hle::d3d12x::title_textures::tests::stream_recheck_keeps_the_whole_upload_baseline_over_partial_uploads, hle::d3d12x::title_textures::tests::stream_recheck_partial_upload_without_an_entry_queues_a_whole_upload, hle::d3d12x::title_textures::tests::stream_recheck_schedule_catches_late_writes_and_resets_milestones, test_title_runs_and_game_folder_is_untouched (all but `test_title_runs_and_game_folder_is_untouched` fail on amd-dev 41aa60ce alone on this card; that one fails because of this PR, in both runs of this merge) review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7338340399 and its findings stand. Most serious: by default `hot_gap` goes from 64 back to 4 MiB (~2088), undoing 9acc0314 without measuring the load-time case, and the 150 ms brief-hot tier lets a placed texture cool in 150 ms (stale texture risk on the default path). performance: 60 s smoke of a retail title, amd-dev 41aa60ce vs this merge (b1c4ef5a): 1671 -> 1675 frames shown (100 %; last presents per 2 s: 60 60 60), peak commit 16722 -> 17366 MB, 0 device removals, 0 crashes. The smoke run is from the first of the two runs; the second ran the suite only. verdict: not yet: the e2e test title fails in both runs of this merge and passes on amd-dev alone: `[FAIL] D3D12.X: async ring-buffered sparse uploads (80 MiB across 20 submits + reused-tile zeroing): submit 9 tail mismatch: got 0x0, want 0xa50ffff9`, i.e. an upload's data is missing, which fits the review's point that the shorter hot window lets just-written blocks cool too soon; also `hot_gap` going back to 4 MiB by default is unmeasured hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
bmjask commented 2026-12-02 18:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T18:07:03Z.

Code review location: crates/xcl/src/hle/d3d12x/title_textures.rs; line 2124

@@ -2081,29 +2081,69 @@ fn hot_looks() -> bool {
 }
 
 const HOT_BLOCK: usize = 2 << 20;
-/// the gap up to which hot blocks go into one write-watch call (`XCL_WATCH_GAP_MB`, 64 unless
-/// given): a call waits for the process's memory lock, which is busy while the title loads, and
-/// costs more than walking some megabytes of pages
+/// the gap up to which hot blocks go into one write-watch call (`XCL_WATCH_GAP_MB`, 4 unless
+/// given): a call costs roughly as much as walking 4-6 MiB of committed pages; 64 MiB bridged
+/// tens of megabytes of untouched cold memory between hot blocks
 fn hot_gap() -> usize {
     static GAP: std::sync::OnceLock<usize> = std::sync::OnceLock::new();
-    *GAP.get_or_init(|| std::env::var("XCL_WATCH_GAP_MB").ok().and_then(|v| v.trim().parse::<usize>().ok()).unwrap_or(64) << 20)
+    *GAP.get_or_init(|| std::env::var("XCL_WATCH_GAP_MB").ok().and_then(|v| v.trim().parse::<usize>().ok()).unwrap_or(4) << 20)
 }
-/// a block nothing was written to for this long is left to the walk again (`XCL_WATCH_HOT_MS`,
-/// 1500 unless given)
+/// a recurring hot block nothing was written to for this long is left to the walk again
+/// (`XCL_WATCH_HOT_MS`, 1500 unless given)
 fn hot_for() -> std::time::Duration {
     static MS: std::sync::OnceLock<u64> = std::sync::OnceLock::new();
     std::time::Duration::from_millis(*MS.get_or_init(|| std::env::var("XCL_WATCH_HOT_MS").ok().and_then(|v| v.trim().parse().ok()).filter(|&v| v >= 20).unwrap_or(1500)))
 }
+/// newly mapped, marked, walked, or write-once blocks cool quickly (`XCL_WATCH_HOT_BRIEF_MS`,
+/// 150 unless given) until written across >= 2 distinct looks, which promotes them to `hot_for()`
+fn brief_hot_for() -> std::time::Duration {
+    static MS: std::sync::OnceLock<u64> = std::sync::OnceLock::new();
+    std::time::Duration::from_millis(*MS.get_or_init(|| std::env::var("XCL_WATCH_HOT_BRIEF_MS").ok().and_then(|v| v.trim().parse().ok()).filter(|&v| v >= 20).unwrap_or(150)))
+}
+
+#[derive(Clone, Copy, Debug)]
+struct HotEntry {
+    at: std::time::Instant,
+    why: u8,
+    /// Distinct looks that found written pages in this block (`>= 2` promotes to `hot_for`).
+    writes: u8,
+}
 
 #[derive(Default)]
 struct HotBlocks {
-    /// block -> when a look or the walk last found a written page in it, and why it is hot
-    /// (`HOT_WRITTEN`, `HOT_WALKED`, `HOT_NEW`, `HOT_MARKED`: `look_stats::HOT_WHY`)
-    hot: BTreeMap<usize, (std::time::Instant, u8)>,
+    /// block -> when a look or the walk last found a written page in it, why it is hot, and
+    /// how many distinct looks found writes in it (`HOT_WRITTEN`, `HOT_WALKED`, `HOT_NEW`,
+    /// `HOT_MARKED`: `look_stats::HOT_WHY`)
+    hot: BTreeMap<usize, HotEntry>,
     /// the ranges of the last look (a block new to the ranges starts hot: `new_blocks`)
     ranges: Option<Arc<Vec<(usize, usize)>>>,
 }
 
+fn retain_hot(hot: &mut BTreeMap<usize, HotEntry>, now: std::time::Instant, keep_brief: std::time::Duration, keep_long: std::time::Duration) {
+    let keep_brief = keep_brief.min(keep_long);
+    hot.retain(|_, e| {

High: A block is only promoted when two looks find writes in it less than 150 ms apart, so whenever looks come more than 150 ms apart nothing is promoted and every hot block expires between looks. On a loading screen, a low-fps scene, or during XCL_LOOK_SKIP gaps with submits more than 150 ms apart, each look's retain_hot drops every entry with writes < 2, so hot_runs returns only HOT_NEW blocks. Every CPU write then depends on the walk finding it before the submit, and writes the walk hasn't reached are missed, so the GPU reads stale buffer/texture data. The old 1500 ms window covered these cases. Counting looks rather than wall-clock time (cool a block after N consecutive empty looks) would behave the same at any submit rate.

<!-- greyfinch-sync:ivall/xcl:review-comment:4773706184 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#discussion_r4773706184). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T18:07:03Z. **Code review location:** `crates/xcl/src/hle/d3d12x/title_textures.rs`; line 2124 ~~~~diff @@ -2081,29 +2081,69 @@ fn hot_looks() -> bool { } const HOT_BLOCK: usize = 2 << 20; -/// the gap up to which hot blocks go into one write-watch call (`XCL_WATCH_GAP_MB`, 64 unless -/// given): a call waits for the process's memory lock, which is busy while the title loads, and -/// costs more than walking some megabytes of pages +/// the gap up to which hot blocks go into one write-watch call (`XCL_WATCH_GAP_MB`, 4 unless +/// given): a call costs roughly as much as walking 4-6 MiB of committed pages; 64 MiB bridged +/// tens of megabytes of untouched cold memory between hot blocks fn hot_gap() -> usize { static GAP: std::sync::OnceLock<usize> = std::sync::OnceLock::new(); - *GAP.get_or_init(|| std::env::var("XCL_WATCH_GAP_MB").ok().and_then(|v| v.trim().parse::<usize>().ok()).unwrap_or(64) << 20) + *GAP.get_or_init(|| std::env::var("XCL_WATCH_GAP_MB").ok().and_then(|v| v.trim().parse::<usize>().ok()).unwrap_or(4) << 20) } -/// a block nothing was written to for this long is left to the walk again (`XCL_WATCH_HOT_MS`, -/// 1500 unless given) +/// a recurring hot block nothing was written to for this long is left to the walk again +/// (`XCL_WATCH_HOT_MS`, 1500 unless given) fn hot_for() -> std::time::Duration { static MS: std::sync::OnceLock<u64> = std::sync::OnceLock::new(); std::time::Duration::from_millis(*MS.get_or_init(|| std::env::var("XCL_WATCH_HOT_MS").ok().and_then(|v| v.trim().parse().ok()).filter(|&v| v >= 20).unwrap_or(1500))) } +/// newly mapped, marked, walked, or write-once blocks cool quickly (`XCL_WATCH_HOT_BRIEF_MS`, +/// 150 unless given) until written across >= 2 distinct looks, which promotes them to `hot_for()` +fn brief_hot_for() -> std::time::Duration { + static MS: std::sync::OnceLock<u64> = std::sync::OnceLock::new(); + std::time::Duration::from_millis(*MS.get_or_init(|| std::env::var("XCL_WATCH_HOT_BRIEF_MS").ok().and_then(|v| v.trim().parse().ok()).filter(|&v| v >= 20).unwrap_or(150))) +} + +#[derive(Clone, Copy, Debug)] +struct HotEntry { + at: std::time::Instant, + why: u8, + /// Distinct looks that found written pages in this block (`>= 2` promotes to `hot_for`). + writes: u8, +} #[derive(Default)] struct HotBlocks { - /// block -> when a look or the walk last found a written page in it, and why it is hot - /// (`HOT_WRITTEN`, `HOT_WALKED`, `HOT_NEW`, `HOT_MARKED`: `look_stats::HOT_WHY`) - hot: BTreeMap<usize, (std::time::Instant, u8)>, + /// block -> when a look or the walk last found a written page in it, why it is hot, and + /// how many distinct looks found writes in it (`HOT_WRITTEN`, `HOT_WALKED`, `HOT_NEW`, + /// `HOT_MARKED`: `look_stats::HOT_WHY`) + hot: BTreeMap<usize, HotEntry>, /// the ranges of the last look (a block new to the ranges starts hot: `new_blocks`) ranges: Option<Arc<Vec<(usize, usize)>>>, } +fn retain_hot(hot: &mut BTreeMap<usize, HotEntry>, now: std::time::Instant, keep_brief: std::time::Duration, keep_long: std::time::Duration) { + let keep_brief = keep_brief.min(keep_long); + hot.retain(|_, e| { ~~~~ --- **High**: A block is only promoted when two looks find writes in it less than 150 ms apart, so whenever looks come more than 150 ms apart nothing is promoted and every hot block expires between looks. On a loading screen, a low-fps scene, or during XCL_LOOK_SKIP gaps with submits more than 150 ms apart, each look's `retain_hot` drops every entry with writes < 2, so `hot_runs` returns only HOT_NEW blocks. Every CPU write then depends on the walk finding it before the submit, and writes the walk hasn't reached are missed, so the GPU reads stale buffer/texture data. The old 1500 ms window covered these cases. Counting looks rather than wall-clock time (cool a block after N consecutive empty looks) would behave the same at any submit rate.
bmjask commented 2026-12-02 18:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T18:07:03Z.

Code review location: crates/xcl/src/hle/d3d12x/title_textures.rs; line 2196

@@ -2153,11 +2193,10 @@ fn hot_runs(ranges: &Arc<Vec<(usize, usize)>>, now: std::time::Instant) -> (Vec<
     if !h.ranges.as_ref().is_some_and(|r| Arc::ptr_eq(r, ranges)) {
         let old = h.ranges.replace(Arc::clone(ranges));
         for b in new_blocks(old.as_deref().map_or(&[], |v| &v[..]), ranges) {
-            h.hot.insert(b, (now, HOT_NEW));
+            h.hot.entry(b).or_insert(HotEntry { at: now, why: HOT_NEW, writes: 0 });

Medium: The new-block path changed from insert to entry().or_insert(), so a block new to the ranges no longer gets a fresh timestamp, and retain_hot, which runs right after, can drop it before the first look covers it. If mark_hot or an old mapping left an entry for block B with writes=0 and at=t0, and the ranges are rebuilt at a submit more than 150 ms later, new_blocks returns B, or_insert does nothing, and retain_hot removes B before runs are built. The first look after the mapping then skips the just-mapped block, which the comment calls "often written and used at once". Resetting it to (now, HOT_NEW) as before would fix it.

<!-- greyfinch-sync:ivall/xcl:review-comment:4773706194 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#discussion_r4773706194). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T18:07:03Z. **Code review location:** `crates/xcl/src/hle/d3d12x/title_textures.rs`; line 2196 ~~~~diff @@ -2153,11 +2193,10 @@ fn hot_runs(ranges: &Arc<Vec<(usize, usize)>>, now: std::time::Instant) -> (Vec< if !h.ranges.as_ref().is_some_and(|r| Arc::ptr_eq(r, ranges)) { let old = h.ranges.replace(Arc::clone(ranges)); for b in new_blocks(old.as_deref().map_or(&[], |v| &v[..]), ranges) { - h.hot.insert(b, (now, HOT_NEW)); + h.hot.entry(b).or_insert(HotEntry { at: now, why: HOT_NEW, writes: 0 }); ~~~~ --- **Medium**: The new-block path changed from `insert` to `entry().or_insert()`, so a block new to the ranges no longer gets a fresh timestamp, and `retain_hot`, which runs right after, can drop it before the first look covers it. If `mark_hot` or an old mapping left an entry for block B with writes=0 and at=t0, and the ranges are rebuilt at a submit more than 150 ms later, `new_blocks` returns B, `or_insert` does nothing, and `retain_hot` removes B before runs are built. The first look after the mapping then skips the just-mapped block, which the comment calls "often written and used at once". Resetting it to (now, HOT_NEW) as before would fix it.
bmjask commented 2026-12-02 18:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T18:07:03Z.

Code review location: crates/xcl/src/hle/d3d12x/title_textures.rs; line 2458

@@ -2424,7 +2456,7 @@ unsafe fn walk() {
                     let h = g.get_or_insert_with(HotBlocks::default);
                     for b in found.drain(..) {
                         if let std::collections::btree_map::Entry::Vacant(v) = h.hot.entry(b) {

Medium: The walk only inserts when the entry is Vacant, so a write it finds in a block that already has a brief entry doesn't refresh at, and the next retain_hot can drop that block just before the look that should take the write. With block B at writes=1, at=t-140ms, if the walk finds a new write in B at t, it skips it because the entry is occupied. The look at t+15ms runs retain_hot, drops B (age 155 ms), and doesn't cover it, so a submit in that window reads stale data. With a 150 ms window this happens far more often than with 1500 ms. Refreshing at on an occupied entry would fix it.

<!-- greyfinch-sync:ivall/xcl:review-comment:4773706199 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#discussion_r4773706199). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T18:07:03Z. **Code review location:** `crates/xcl/src/hle/d3d12x/title_textures.rs`; line 2458 ~~~~diff @@ -2424,7 +2456,7 @@ unsafe fn walk() { let h = g.get_or_insert_with(HotBlocks::default); for b in found.drain(..) { if let std::collections::btree_map::Entry::Vacant(v) = h.hot.entry(b) { ~~~~ --- **Medium**: The walk only inserts when the entry is Vacant, so a write it finds in a block that already has a brief entry doesn't refresh `at`, and the next `retain_hot` can drop that block just before the look that should take the write. With block B at writes=1, at=t-140ms, if the walk finds a new write in B at t, it skips it because the entry is occupied. The look at t+15ms runs `retain_hot`, drops B (age 155 ms), and doesn't cover it, so a submit in that window reads stale data. With a 150 ms window this happens far more often than with 1500 ms. Refreshing `at` on an occupied entry would fix it.
bmjask commented 2026-12-02 18:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T18:07:03Z.

Review: COMMENTED


Review of b1c4ef5a: 4 finding(s) (2 high, 2 medium), most severe first.

  1. High crates/xcl/src/hle/d3d12x/title_textures.rs:2124: A block is only promoted when two looks find writes in it less than 150 ms apart, so whenever looks come more than 150 ms apart nothing is promoted and every hot block expires between looks. (inline)
  2. High crates/xcl/src/hle/d3d12x/title_textures.rs:891: see below.
  3. Medium crates/xcl/src/hle/d3d12x/title_textures.rs:2196: The new-block path changed from insert to entry().or_insert(), so a block new to the ranges no longer gets a fresh timestamp, and retain_hot, which runs right after, can drop it before the first look covers it. (inline)
  4. Medium crates/xcl/src/hle/d3d12x/title_textures.rs:2458: The walk only inserts when the entry is Vacant, so a write it finds in a block that already has a brief entry doesn't refresh at, and the next retain_hot can drop that block just before the look that should take the write. (inline)

On lines outside the diff:

  1. High crates/xcl/src/hle/d3d12x/title_textures.rs:891: mark_hot entries ("the data the title is about to write there is for the next submit") now expire after 150 ms instead of 1500 ms. If a title places or commits a texture and fills it more than 150 ms later (streaming, or a load-time fill before the next submit), the marked block has already cooled, so the next submit's look skips it and the upload depends on walk timing and can be stale, which is the case mark_hot exists to prevent. Keeping marked blocks on the long window would avoid it.

These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.

<!-- greyfinch-sync:ivall/xcl:review:6156150841 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#pullrequestreview-6156150841). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T18:07:03Z. **Review:** COMMENTED --- Review of `b1c4ef5a`: 4 finding(s) (2 high, 2 medium), most severe first. 1. **High** `crates/xcl/src/hle/d3d12x/title_textures.rs:2124`: A block is only promoted when two looks find writes in it less than 150 ms apart, so whenever looks come more than 150 ms apart nothing is promoted and every hot block expires between looks. (inline) 2. **High** `crates/xcl/src/hle/d3d12x/title_textures.rs:891`: see below. 3. **Medium** `crates/xcl/src/hle/d3d12x/title_textures.rs:2196`: The new-block path changed from `insert` to `entry().or_insert()`, so a block new to the ranges no longer gets a fresh timestamp, and `retain_hot`, which runs right after, can drop it before the first look covers it. (inline) 4. **Medium** `crates/xcl/src/hle/d3d12x/title_textures.rs:2458`: The walk only inserts when the entry is Vacant, so a write it finds in a block that already has a brief entry doesn't refresh `at`, and the next `retain_hot` can drop that block just before the look that should take the write. (inline) **On lines outside the diff:** 2. **High** `crates/xcl/src/hle/d3d12x/title_textures.rs:891`: `mark_hot` entries ("the data the title is about to write there is for the next submit") now expire after 150 ms instead of 1500 ms. If a title places or commits a texture and fills it more than 150 ms later (streaming, or a load-time fill before the next submit), the marked block has already cooled, so the next submit's look skips it and the upload depends on walk timing and can be stale, which is the case `mark_hot` exists to prevent. Keeping marked blocks on the long window would avoid it. --- _These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it._
bmjask commented 2026-12-02 18:07:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T18:07:06Z.


@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.

<!-- greyfinch-sync:ivall/xcl:comment:7353963132 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3649#issuecomment-7353963132). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T18:07:06Z. --- @Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3649:upstream-pr/3649'
git switch 'upstream-pr/3649'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'amd-dev'
git merge --no-ff 'upstream-pr/3649'
git switch 'upstream-pr/3649'
git rebase 'amd-dev'
git switch 'amd-dev'
git merge --ff-only 'upstream-pr/3649'
git switch 'upstream-pr/3649'
git rebase 'amd-dev'
git switch 'amd-dev'
git merge --no-ff 'upstream-pr/3649'
git switch 'amd-dev'
git merge --squash 'upstream-pr/3649'
git switch 'amd-dev'
git merge --ff-only 'upstream-pr/3649'
git switch 'amd-dev'
git merge 'upstream-pr/3649'
git push origin 'amd-dev'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3649
No description provided.