d3d12/gpu: make texture pool commit-aware and default LEONIDA_COMMIT_FLOOR on (D3D12-TEXTURE-POOL-COMMIT-FLOOR) #3201
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3201:github-pr/3201" git switch "github-pr/3201"
Open
leonida/mandy
Jyx0208 wants to merge 1 commit from
github-pr/3201 into main
pull from: github-pr/3201
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3201
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3201"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Claimed in the coordination issue as: D3D12-TEXTURE-POOL-COMMIT-FLOOR (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7353942933)
What and why
Refs: #2821
Under Windows WDDM, every
D3D12_HEAP_TYPE_DEFAULT64 MiB texture heap (pool.rs) is charged 1:1 to process private bytes and system commit charge. On high-VRAM GPUs (or any host whose Windows commit headroom tightens before local VRAM reaches 88% of budget):resource::let_go_idle()kept idle textures for 10 minutes becauseLEONIDA_COMMIT_FLOORwas off by default, allowingpool.rsto sprawl up to 244+ 64 MiB texture blocks (15.6+ GiBof VRAM and system commit) and pin them via fragmentation before commit pressure triggered cleanup.pool::room()scaledSTAGINGandsmallblock spares down to1under commit pressure and0undercritical_commit(), but never applied commit headroom orcritical_commit()toTEXTURESspares (which could keep up toSPARE_KEPT = 64empty 64 MiB blocks =4 GiBwhile VRAM < 85%, and keptSPARE = 2even when commit was critical), nor didpool::texture_with_cast()guard new 64 MiB heap creation againstcritical_commit()(unlikepool::small::block()).This change:
d3d12/crates/leonida-gpu/src/pool.rs):pool::room()now computestexture_spares(limit, keep, avail_commit, critical): returns0undercritical_commit()(also stoppingRipe::now()from pre-allocating ahead blocks), caps to1below the 4 GiB commit floor, and scalesSPARE_KEPTlinearly by half of remaining commit headroom above 4 GiB so large-VRAM GPUs do not hoard up to 4 GiB of empty heaps as commit tightens.pool::texture_with_cast()returnsNonewhenresidency::critical_commit()is true instead of committing a fresh 64 MiB heap (matchingpool::small::block(), falling back cleanly to per-texture allocation).LEONIDA_COMMIT_FLOORon (d3d12/crates/leonida-gpu/src/resource.rs,d3d12/docs/switches.md):LEONIDA_COMMIT_FLOORby default (=0disables it;LEONIDA_ABstill overrides it), so idle textures out of use for >= 2.5 s and >= 60 frames are swept once available commit drops belowLEONIDA_COMMIT_FLOOR_MB(default4096 MiB) before hundreds of 64 MiB blocks fragment and lock system commit.d3d12/docs/switches.mdviatools/d3d12_switches.py --out.Tested
python -I scripts/red_green.py feat/texture-pool-commit-floor --no-fetch): exit 0 (verdict: red then green) — both new hermetic child-process tests (pool::tests::room_and_texture_pool_drop_spares_and_refuse_new_blocks_under_critical_commitandresource::tests::commit_floor_defaults_on_and_zero_disables_it) fail onorigin/main(45dc41f9) and pass on this branch (703pass on both).leonida-gpuunit suite (cargo test --locked -p leonida-gpu --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws): 704 passed, 0 failed.cargo test --locked -p leonida-gpu --features diagnostics --test replay): 1 passed, 0 failed.python -I scripts/check_no_game_data.pyandpython -I tools/d3d12_switches.py --check d3d12/docs/switches.mdboth pass (exit 0).-Resolution 1440, Frame Gen 2x):a917c54d,LEONIDA_COMMIT_FLOORoff):pool.rstexture blocks grew to15,616 MB(244blocks;269made), local VRAM peaked at22,703 MB, process private bytes reached49,917 MB, available commit dropped from43,568 MBto2,212 MB(hittingcommit critical7 times before0x887A0005at 79.5 min).LEONIDA_COMMIT_FLOOR_MB=20000to exercise the floor early on 64 GB RAM):376commit-floor sweeps recycled330,946idle textures (20,578 MB) inside the initial5,056 MB(79blocks) with zero new 64 MiB texture blocks created over the remaining 7 minutes; local VRAM stabilized at11,207 MB, private bytes at37,001 MB, available commit stayed15.4–17.2 GB(0pressure warnings,0errors), frame rate23–29 fps(unchanged), texture refresh1.6 ms/frame(vs2.8 ms/framebaseline).GPUs tested: NVIDIA GeForce RTX 4090 D 48 GB (driver 616.92, Windows 11 10.0.26200).
AI-assisted: yes (Antigravity using Gemini 4 Neon for analysis, implementation, and tests; separate read-only reviewer agent using Gemini 4 Neon audited the diff, edge cases, red/green tests, and clean-room rules).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — no translator rules changed)Game-run test of this PR on a high-VRAM card: the textures are let go, but their 64 MiB blocks are not given back.
Setup: RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300). Series X profile, 3840x2160
output,
LEONIDA_RENDER_SCALE=0.6667, the title's upscaler,-HardwareRT -SmoothMotion -PrecompileAll -Log,LEONIDA_REAPER=0. Base: upstream main0d7a451ab(2026-12-02) plus #3113 and #3182, diag build. Candidate:the same plus this PR at
c7d0c9627. Two runs of about 5.5 minutes each: same save, then city driving. Thenumbers come from the runtime's own
copystatmemory lines and thecensusline.pool.rstextures in blockspool.rs64 MiB texture blocksWhat happens: with this PR, idle textures are let go once commit headroom falls. Here that was at about
4.5 GB left: the texture count fell from 184k to 24k within 30 s. But the 64 MiB
DEFAULTheaps holding them stayallocated. 192 blocks hold 2.1 GB of live textures, so about 10 GB is empty but still charged. As a result, private
bytes and commit kept their trend, and the card's memory did not drop either.
What would help: a pass that releases (or compacts into) empty or nearly empty texture blocks once their
textures are gone, or a cap on block count driven by the same commit floor. Without it, on a 32 GB card the floor
frees texture objects but not the memory this PR targets.
The runs were not the same route, so I do not compare frame rates between them (27.8 vs 19.4 fps median; the
second drive was busier).
Logs (scrubbed of paths) available on request.
AI-assisted: the measurements and the write-up were done with Claude Opus 5.5 (Claude Code); the numbers are the
runtime's own log lines from the runs above.
Third-party Windows verification of #3201 (
D3D12-TEXTURE-POOL-COMMIT-FLOOR) on headc7d0c9627c7d0c962728c70551567bb9f9907d5f23253d986merged cleanly (git merge --no-ff) ontoorigin/mainb41763227.621.24(32.0.16.2124), AMD Ryzen 7 H 260 w/ Radeon 780M, 32 GB RAM, Windows 1110.0.26300.9974,rustc 1.98.1.Results (MEASURED)
python -I scripts/check_no_game_data.py(all 3 touched files)0python -I tools/d3d12_switches.py --check d3d12/docs/switches.md0LEONIDA_ADAPTER=5060python -I scripts/red_green.py 3201 --mutate0(verdict: red then green) — both new child-process tests (pool::tests::room_and_texture_pool_drop_spares_and_refuse_new_blocks_under_critical_commit,resource::tests::commit_floor_defaults_on_and_zero_disables_it) went red → green;702pass on both,1only on green (ok),0failures.--mutate:pool.rs:902(critical_commit()guard intexture_with_cast) andresource.rs:2840(commit_floor_enableddefault-on) caught;pool.rs:48,:93,resource.rs:2831does not build;pool.rs:58,:62,:74(and doc comments:41,resource.rs:2816)not caught.LEONIDA_ADAPTER=5060+LEONIDA_D3D12_DEBUG=1cargo test -p leonida-gpu --features diagnostics --locked --lib -- pool:: resource::tests::commit_floor --test-threads=123 passed, 0 failed(note: runningpool::with parallel threads can trip a pre-existing globalTEXTURES.restingrace ina_texture_gives_its_piece_back_when_it_goes;--test-threads=1passes cleanly)Review notes (READ IN CODE)
texture_spares's linear scaling above the 4 GiB commit floor ((avail_commit - COMMIT_FLOOR) / (2 * BLOCK)) and the< 4 GiBcap-to-1branch have no direct pure-function unit test (--mutateonly exercises thecritical_commit()→0path). Adding a small unit test directly ontexture_spares(...)would lock down all four branches.DEFAULTblocks pinned whenever at least one live texture remains in a block; that's worth keeping in mind alongside this commit-floor change (even if compaction/reclaim stays a follow-up).AI-assisted: Gemini 4 Neon (High) via Antigravity (test execution, diff review, and write-up).
VERIFY-3201 — Windows nativo: suite sin regresiones, control sintético, y una pregunta sobre el cambio de defecto
(this PR)45dc41f95(behindmainb41763227)main—merge-treeclean,git merge --no-ffclean (switches.mdauto-merged)Ran
The one failure is this machine's, unchanged all day:
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails identically on cleanmain(the iGPU artefact ofD3D12CreateDevice(None, ..)that #2995 addresses).A note for whoever runs this: three lines in the output read
test result: ok. 1 passed; … 763 filtered— those are the child processes a couple of tests spawn, not the suite. The suite's own line is the704 passed; 1 failed; 59 ignoredone.The PR ships its own tests in the same files, so the red side had to be built synthetically: in a copy I made
commit_floor()returnfalseunder a test variable, rebuilt, and ran —FAILED: resource::tests::commit_floor_defaults_on_and_zero_disables_it. The test bites.What I would want answered
LEONIDA_COMMIT_FLOORgoes from off to on for every user, so idle texture copies are dropped sooner (10 minutes → whatever the floor allows) unless=0orLEONIDA_AB. A commit-floor-on-by-default is a real behaviour change, and the body's evidence is a red/green run that skipsdepth_bounds_pipeline_loads_and_filters_…. Is that skip because the test is slow/flaky on the author's machine, and was the default flip measured withLEONIDA_AB(the body mentions it as an override, not as a measurement)? Without that, the default is being changed on reasoning alone.texture_spares(limit, keep, avail_commit, critical)returns 0 undercritical_commit(), andtexture_with_cast()refuses a fresh 64 MiB block rather than committing it — that is the path the#2821report is about.What I could not test
critical_commit()on a real machine: the tests drive it directly rather than through a pressured card.Written with an AI assistant.
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
RUN (in game, RTX 5070 12 GB, 315 s in-world gate) -- PASS on head
c7d0c9627(merged cleanly viagit merge --no-ffontomain8877be372).Build & Unit Checks (Windows 10 x64, RTX 5070 12 GB, driver 595.79)
python -I scripts/check_no_game_data.py-> PASSpython -I tools/d3d12_switches.py --check d3d12/docs/switches.md-> PASScargo test -p leonida-gpu --lib --locked pool::-> 22 passed, 0 failedcargo test -p leonida-gpu --lib --locked resource::-> 30 passed, 0 failedcargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked-> PASSLive In-Game Gate (
-SeriesS -NoFrameGen, default env --LEONIDA_COMMIT_FLOORon by default)c7d0c9627on8877be372)315 s(443.9 s)64(5,611)0/027.0 fps(37.0 ms)21.5/28.2main(8877be372)315 s(441.9 s)63(4,338)0/027.9 fps(35.8 ms)26.1/29.6LEONIDA_COMMIT_FLOORwas active by default in the residency logs with0failed allocations and0sweeps under the floor (this host had> 40 GiBcommit headroom, so the low-commit eviction path itself was not forced during the run; commit-pressure behavior is covered by the unit tests and this run confirms clean steady-state behavior and zero regressions with default-onLEONIDA_COMMIT_FLOOR).AI-assisted: yes (Antigravity -- Gemini 4 Neon).
Thanks everyone for the thorough reviews, third-party verification, and live runs! Keeping head unchanged at
c7d0c9627so the passing in-game gate run stays valid.c7d0c9627merged ontomain8877be372(0errors,0device lost,27.0 fpsvs27.9 fpsonmain): https://github.com/ProjectLeonida/mandy/pull/3201#issuecomment-7360663780--skip depth_bounds_pipeline_loads_and_filters_drawsflag in the PR description came from the canonicalAGENTS.mdcommand (cargo test --workspace --exclude xtask --locked -- --skip depth_bounds_pipeline_loads_and_filters_draws), not from a failure on this GPU.LEONIDA_COMMIT_FLOORto default-on: while available commit is above4 GiB,commit_floor()short-circuits (0sweeps,0eviction overhead — confirmed by @lixonik's 315 s run). It only activates once commit drops below4 GiB(the same threshold whereresidencyenters commit pressure), andLEONIDA_COMMIT_FLOOR=0(orLEONIDA_AB) can still disable or A/B it.4 GiB,Pool::reclaimcan only freefree.whole(BLOCK)heaps, so scattered long-lived textures keep partially-empty blocks pinned (whereas triggering before sprawl kept our 4090 D run flat at79blocks /5.05 GB). Logging wholly-free vs total texture blocks and addressing block fragmentation / compaction belong in a focused follow-up PR perCONTRIBUTING.md(one topic per PR).scripts/red_green.py --mutateandLEONIDA_D3D12_DEBUG=1! We intentionally tested viapool::room()using existingorigin/mainsymbols rather than calling the newly introducedtexture_spares(...)directly soscripts/red_green.pycleanly evaluatesverdict: red then greeninstead ofred does not build.AI-assisted: yes (Antigravity using Gemini 4 Neon).