D3D12.X: pack sub-64 KiB sampled textures into 4 KiB-aligned VRAM heaps #1835
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1835
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1835"
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?
@raylitebull on GitHub · 2026-11-24 21:37 UTC · original
raylitebull:feat/vram-small-textures→main· +703 −15 · 4 files · 5 commits · openPacks sub-64 KiB single-sample non-RT/DS sampled textures into shared 16 MiB
D3D12_HEAP_TYPE_DEFAULTheaps at 4 KiB placement alignment (D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT), eliminating up to 16x per-texture VRAM bloat and WDDM residency paging cliffs during heavy texture streaming.Part of #1607 and #1673; complementary to #1782 (no overlapping files —
TitleHoldwas intentionally omitted here so this PR stays scoped solely to sub-64 KiB texture packing).What is in it
crates/xcl/src/hle/d3d12x/vram_small.rs&mod.rs: addSmallPoolsallocator (UNIT = 4 KiB,POOL_UNITS = 4096/ 16 MiB heaps,XCL_VRAM_SMALL=0opt-out) with(va, units)alias sharing, size-class slot recycling afterIDLE + COOL,CreateHeap/CreatePlacedResourceoutside locks (re-checkingtry_acquireunder the lock insideadd_pool_and_acquire),vram_small::flush_idle_for(dev_key)for test isolation, adapter selection viagpu::adapter::candidatesforXCL_ADAPTER, and capability-gated GPU testgpu_small_textures_pack_at_4k_granularity_and_preserve_pixels(reporting capability skips viacrate::gpu::recomp::runner::skip_testwhen an adapter lacksResourceHeapTier >= 2, 4 KiBD3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT, orTiledResourcesTier >= 2).crates/xcl/src/hle/d3d12x/vram.rs: integrate cleanly with#2306(XCL_TEXTURE_LEVEL_PAGES=1, orderingconsole_has_packed_3d_mips->vram_small::placefor< 64 KiBnon-aliasing textures ->#2306lazyplace_on_pages, preservingmap_levels/has_lazy_levels), ignore expired idle pages inhas_live_page, sweep expired idle entries invram_small::bytes_for/vram::page_bytes_for/vram::extra_page_bytes_for, add#[cfg(test)] vram::flush_idle_for(dev_key), and release small-pool slots cleanly inforget.crates/xcl/src/hle/d3d12x/title_textures.rs: update the 4 KiB adjacent-placement assertions and addflush_idle_for(dev_key)calls between isolated GPU test phases inplaced_title_textures_share_vram_and_preserve_pixelsandgpu_small_textures_pack_at_4k_granularity_and_preserve_pixels, keeping#1990'sconsole_has_packed_3d_mips(desc)check ahead ofvram_small::place.Tested
10.0.22631.0),rustc 1.99.1 (58cf8f9c3 2026-10-13), rebased cleanly onto73e3aba6(5005620c).5005620c:cargo check --workspace --testspassed (0new warnings);cargo test -p xcl --lib -- --nocapture --test-threads=1 hle::d3d12x::vram hle::d3d12x::title_textures: 38 passed, 0 failed, 1 ignored (3.01s, including#2306'sa_placed_texture_gets_the_pages_of_a_level_with_its_texelsand all 3 steps ofgpu_small_textures_pack_at_4k_granularity_and_preserve_pixelswith0skips:512 x 64x64 BC1in+2,097,152 Binside one16 MiBheap, hardware RGBA8 alias/crosstalk readback, and live RTvram::Pagesalias).b5a04adfconfirmed 48–80 MB / ~900 MB VRAM savings on RTX 4070 Wine (@Royalflamejlh),39014d3passed RTX 3080 Ti (27/0,@thehollowedone), and5af3b9d/44adb5fpassed RTX 3060 smoke (@Anon64) and RTX 3090 (@WebIdentity1).Regression run
scripts/smoke.ps1pair on5005620cvs73e3aba6has not been run yet. AMD and NVIDIA reviewers (and Intel Arc A770 verification ofrunner::skip_testreporting ingpu_small_textures_pack_at_4k_granularity_and_preserve_pixels) are invited to run tests/scripts/smoke.ps1and post results in the comments.Not tested
scripts/smoke.ps1pair and fullcargo test --workspacesuite on5005620cvs73e3aba6, Intel Arc A770 re-run on5005620c, and Linux/Wine/vkd3d-proton on5005620c.AI use
#2306rebase, and capability/test fixes; the author reviewed the diff and test output.@Anon64 on GitHub · 2026-11-24 21:52 UTC · original
Regression run for this PR: head
5af3b9d, based onmainc4d37be. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, back to back with themainrun.main
c4d37be:this PR:
No device removals or crashes; 100 % of main's frames, 103 % of its peak commit.
Not tested: the whole suite; world loading with this PR; whether the title reaches all of the changed code in these 60 s (default settings, so the direct DXIL path is off).
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@WebIdentity1 on GitHub · 2026-11-24 22:10 UTC · original
I tested exact head
5af3b9d4004bbfbc23e3104d68426bf1a96cf0b6on Windows 10 19045, RTX 3090 (591.74), Rust 1.98.1 MSVC. This uncovered one allocator issue and one test-selection gap.Tested
XCL_ADAPTER=3090 cargo test --locked -p xcl --lib hle::d3d12x::vram_small::tests -- --test-threads=1 --show-output: 3 passed, 0 failed. However, the GPU test usesEnumAdapters1(0), so this stock run does not prove which GPU executed it.gpu::adapter::candidates: same command, 3 passed, 0 failed, 0SKIPPED; test output explicitly namesNVIDIA GeForce RTX 3090. Its hardware upload/readback assertions for same-address aliasing and adjacent-texture crosstalk passed. The 512 BC1 case reported 2,097,152 B of occupied small slots in one 16,777,216 B heap. The 16× comparison is occupied slot bytes against 64 KiB tile bytes; the actual small-pool heap allocated for this case is 16 MiB.add_pool_and_acquire: retained pools are 33,554,432 B versus 16,777,216 B expected (0 passed, 1 failed). The function pushes the second heap before checking whether the first caller has already supplied the slot or enough free space. A guard that callstry_acquirebefore pushing the new heap makes that regression pass (1/0). All four small-pool tests then pass on the selected 3090 (4/0, no skips).The patch below includes the selector, regression and guard. Four 304-file source archives were SHA-256 checked before and after the runs; no source mutation occurred on Windows. This is a deterministic race interleaving test, not a measured concurrent GPU race.
Not tested: full workspace suite, retail title smoke, AMD/Intel on the patch, gameplay or long streaming memory use. This does not establish merge readiness.
AI use: Codex desktop (GPT-6) prepared the test-only selector, regression, guard and report; the results above are from actual Windows runs.
Local patch against 5af3b9d
@thehollowedone on GitHub · 2026-11-24 22:32 UTC · original
Independent check of 5af3b9d on an RTX 3080 Ti (621.35), Windows 11 build 26300, Rust 1.99.1 MSVC debug.
I extended the bundled test to inspect the 64 KiB tile backing a render target and the sampled texture at the same guest address. Both resources referenced the same tile. The tile's user count went from two to one when the sampled texture was released. A sampled texture at the next 64 KiB-aligned address occupied its own 16 KiB small-pool allocation. With just the live-page guard bypassed in a local control, the same-address texture incorrectly took 16 KiB from the small pool and the test failed at that assertion.
cargo test --offline --locked -p xcl --lib gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels -- --nocapture --test-threads=1passed 1/1 with the test extension and the PR's runtime code, with zero skips. Synthetic textures only.AI-assisted. Codex (GPT-6 family, exact variant unavailable) extended and ran the test and drafted this report.
@raylitebull on GitHub · 2026-11-24 22:49 UTC · original
@thehollowedone Thank you for the RTX 3080 Ti verification of the live-page coexistence guard and 4 KiB aliasing behavior on
5af3b9d!@WebIdentity1 Thank you as well for testing
5af3b9don the RTX 3090 and for both catches invram_small.rs:self.try_acquire(key, now)beforeself.pools.push(...)insideadd_pool_and_acquirecleanly drops the redundant 16 MiB pool if two threads race duringCreateHeap.gpu_small_textures_pack_at_4k_granularity_and_preserve_pixelsfromEnumAdapters1(0)togpu::adapter::candidatesproperly honorsXCL_ADAPTER.We'll follow up with that small guard + regression test shortly (and refresh the smoke run for the updated head when pushed).
@grahamster2 on GitHub · 2026-11-24 23:03 UTC · original
Test report for 5af3b9d on NVIDIA.
Tested
1d027e5(one CI-only commit after your basec4d37be).cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4: 959 passed, 3 failed, 43 ignored. main: 959 passed, 0 failed, 43 ignored. Same 22 SKIPPED lines on both (no wave64/refused/no heap windows).hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixelsfails every time, also alone with--test-threads=1:superseded unaligned extra_pages must be reclaimed immediately (16826368 -> 16826368)at title_textures.rs:1887. 16826368 is 16 MiB + 128 KiB, so the 16 MiB small-pool heap seems to be counted in what the test measures.transitions_apply_when_their_list_is_submittedandvram::tests::d32s8_targets_take_their_own_size_of_video_memorythen fail withPoisonError. The vram one passes when run alone.vram_small: 3 passed.scripts/smoke.ps1, 60 s, same title:main:
PR:
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50, with cold caches. Thememory:log line at 100 s / 120 s:0xc0000005null write inside the title), and presents in the world did not change (about one every 30 s, black). One run per build.Not tested
AI use
@raylitebull on GitHub · 2026-11-24 23:13 UTC · original
@WebIdentity1 Thank you for the catches — both are now fixed in
44adb5f(rebased onto20cf130):crates/xcl/src/hle/d3d12x/vram_small.rs::add_pool_and_acquire: now re-checksself.try_acquire(key, now)under the lock beforeself.pools.push(...)so concurrentCreateHeapcallers drop any redundant 16 MiB pool, covered by the added test assertion insmall_pool_packs_shares_and_recycles_by_size_class.gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels: now iteratescrate::gpu::adapter::candidates(&factory, &Selector::from_env_or("auto"))instead of hardcodingEnumAdapters1(0), soXCL_ADAPTERselects the requested adapter.We'll attach a fresh exact-head 60 s
scripts/smoke.ps1pair and re-verifyplaced_title_textures_share_vram_and_preserve_pixelsshortly.@raylitebull on GitHub · 2026-11-24 23:46 UTC · original
@grahamster2 @WebIdentity1 Pushed
53685ad(feat/vram-small-textures, rebased onto62265d3) which resolvesplaced_title_textures_share_vram_and_preserve_pixelsfailing attitle_textures.rs:1887(16826368 -> 16826368) alongside theadd_pool_and_acquirerace guard andXCL_ADAPTERselection:16826368 -> 16826368happened:16,826,368was16 MiB(256pages) +48 KiB(3 × 16 KiBidlevram_smallslots from the previous block). In step 3,unaligned_aoverlappedanchor, evictingbase(-64 KiB) while adding1extra_page(+64 KiB, net256pages); thencover = place_tex(base, &d128)re-allocatedbase(+64 KiB) while reclaiming theextra_page(-64 KiB), makingdev_pages()'s net delta zero even thoughextra_pageswas reclaimed.crates/xcl/src/hle/d3d12x/{vram.rs, title_textures.rs}): Addedvram::extra_page_bytes_for(device)to assertextra_pagesgrowth onunaligned_a, sharing onunaligned_b, and immediate drop back to baseline oncover, and placedcoveratbase + 0x1_0000(which reuses the already-live owned page sodev_pages()also drops cleanly by-64 KiB), plus a CPU regression check inoverlapping_placements_retire_superseded_entries.A fresh re-run of
title_textures::tests/vram_small::testsand an exact-head 60 sscripts/smoke.ps1pair on53685advs62265d3from AMD/NVIDIA reviewers would be appreciated.@DavidM1911 on GitHub · 2026-11-25 01:03 UTC · original
Test report — RTX 3060 Ti (Windows 11), branch merged with current
main(1d027e5):cargo test -p xcl --lib -- --test-threads=1: 3 failures (910 passed, 3 failed, 23 ignored). Root failure is one assertion; the other two arePoisonErrorcascades from the sharedTEST_LOCK/VRAM_TEST_LOCKmutexes:then
transitions_apply_when_their_list_is_submittedandvram::d32s8_targets_take_their_own_size_of_video_memorydie onPoisonError.Repro:
cargo test -p xcl --lib -- --test-threads=1 "hle::d3d12x::vram" "hle::d3d12x::title_textures"— fails on this branch, passes on unmodifiedmain. Each test passes standalone, so it's shared VRAM-arena state: with the new 4 KiB packing, superseded unalignedextra_pagesare not reclaimed when a later test reuses the arena.@raylitebull on GitHub · 2026-11-25 01:09 UTC · original
@DavidM1911 Heads-up: that itle_textures.rs:1887 (16826368 -> 16826368) panic came from the earlier pre-53685ad head (
1d027e5). Current head 53685ad (rebased onto62265d3) replaced that step with extra_page_bytes_for(dev_key) and d64_mips to fix the -64 KiB + 64 KiB = 0 page-count cancellation — feel free to re-run against 53685ad when convenient!@raylitebull on GitHub · 2026-11-25 01:53 UTC · original
Thanks for flagging the sequential test failure (
title_textures.rs:1887),@DavidM1911!Rebased
#1835cleanly onto8f5fca5(39014d3, keeping#1990'sconsole_has_packed_3d_mips(desc)check ahead ofvram_small::place) and fixed both sequential cross-test state leaks under--test-threads=1 hle::d3d12x::vram hle::d3d12x::title_textures:vram::has_live_page& expired idle entries (vram.rs,vram_small.rs):has_live_pagenow ignores expired idle pages (idle_since >= IDLE), and test queries (vram_small::bytes_for,vram::page_bytes_for,vram::extra_page_bytes_for) sweep expired idle entries so preceding tests that sleep pastIDLE(such asd32s8_targets_take_their_own_size_of_video_memory) no longer leave stale expired slots inSMALL_POOLS[dev_key]or causeadj_deltaunderflows / prematuresmall0sweeps in subsequent tests.vram.rs,vram_small.rs,title_textures.rs): added#[cfg(test)] vram::flush_idle_for(dev_key)andvram_small::flush_idle_for(dev_key)(with a CPU check insmall_pool_packs_shares_and_recycles_by_size_class) and called them between isolated GPU test phases inplaced_title_textures_share_vram_and_preserve_pixelsandgpu_small_textures_pack_at_4k_granularity_and_preserve_pixels.Pushed
39014d3for GitHub ActionsBuild and testand fresh AMD / NVIDIA--test-threads=1verification!@JJAutoCompare on GitHub · 2026-11-25 03:20 UTC · original
PR #1835 compatibility verification
Head
39014d3a434908615581d967a907de27e4bc13ea(clean detached checkout). The PR packs eligible sampled textures into shared 16 MiB heaps at 4 KiB granularity and retains the 64 KiB page path for aliases of live GPU targets.Environment STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave 8–32, double-precision shader ops disabled). Rust 1.100.0 (
0ef1bc386), DXC/DXIL 1.9.2609.5,XCL_ADAPTER=A770. D3D12 debug layers were unavailable.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded with debug info disabled.Focused runs used
cargo test -p xcl --lib <filter> -- --nocapture --test-threads=1under the Arc lock.vram_small::tests::had 2 passes and 1 failure. The eligibility and slot packing/reuse/recycling unit tests passed. The GPU test failed at its first 64×64 BC1 placement withplace_pages at 0x6000000000 failed: None(vram_small.rs:470). The reason for the rejected placement was undetermined.overlapping_placements_retire_superseded_entriespassed.placed_title_textures_share_vram_and_preserve_pixelsexited early withtiled tier < 2and libtest marked itok.The single full run,
cargo test --workspace --no-fail-fast -- --test-threads=4, completed under the Arc lock with exit 101. Across 20 libtest summaries, Cargo reported 1,077 passed, 28 failed, 46 ignored. The log contains 23SKIPPEDlines (18 wave64 unavailable, 3 wave32 per-lane forms refused, 1 driver-cache control unavailable, 1 no heap windows). These markers do not count as coverage. The focused title-texture skip was visible with--nocaptureand is outside that log count.Failures were the same BC1 placement, 26 DXIL/recompiler tests (22 compute PSO rejections with
0x80070057and 4 shader result mismatches), and 1 test-title e2e failure (dynamic depth bias returned blue where green was expected).Not tested
The focused GPU failure left BC1 packing, RGBA8 readback and live render-target aliasing unverified. No retail title or main-branch baseline was run. Sample-backed tests had no
XCL_SAMPLE_*inputs. Other adapters and the D3D12 debug layer were outside this run.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1835-suite.logand published this report.@raylitebull on GitHub · 2026-11-25 10:46 UTC · original
Thanks for testing on RTX 3080 Ti and Arc A770,
@thehollowedoneand@JJAutoCompare!Rebased
#1835cleanly onto82e63982(b5a04adf) and fixed the Intel Arc A770 test capability guard (#vram_small.rs):gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels(vram_small.rs,+37 / -1):vram::place_pagescleanly returnsNone(falling back to a committed resource in production) when an adapter reportsResourceHeapTier < 2, lacks 4 KiBD3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT(GetResourceAllocationInforeturning65536), or reportsTiledResourcesTier < 2. Unlikeplaced_title_textures_share_vram_and_preserve_pixels,gpu_small_textures_pack_at_4k_granularity_and_preserve_pixelspreviously panicked onNone; added matching diagnosticSKIPPEDadapter capability guards forResourceHeapTier < 2, 4 KiBBC1/RGBA8alignment before Steps 1 & 2, andTiledResourcesTier < 2before Step 3.b5a04adf):cargo check --workspace --tests: passed (0new warnings).cargo test -p xcl --lib -- --nocapture --test-threads=1 hle::d3d12x::vram hle::d3d12x::title_textures: 33 passed, 0 failed, 1 ignored (2.91s), all 3 steps ofgpu_small_textures_pack_at_4k_granularity_and_preserve_pixelspassed with0skips.@ivall on GitHub · 2026-11-25 13:05 UTC · original
Where
place_pagesspends its time on AMD RDNA4 (the timers Ray asked for; a retail title,main1a0bbe3+ the split PRs, release; RAII timers around the steps, texture placements only):So the reserved resource itself is the cost on this driver, not the mapping, the
Signalor the heaps: deferring theSignalcannot help (and #1747 showed it is not allowed), and packing small textures (this PR) helps as far as it makes fewer reserved resources. I have not run this PR against that yet.AI use: Claude Code (Claude Opus 5.5) measured this and wrote the comment on the maintainer's behalf.
@ivall on GitHub · 2026-11-25 13:14 UTC · original
How the victory forks avoid the placed-texture cost, read from their code (not measured; they are GPL-3, so ideas only, nothing to port):
CreatePlacedResourcemakes only the title's object. The host texture is made on its first use (resource.rs,hosted), and a view the title writes for a texture without one leaves the slot null until then (descriptor.rs,waiting_texture). A world load that places tens of thousands of textures and draws with a part of them pays only for that part.tiles.rs). A level gets tiles in a step that runs at a list's submission, before the list, and the same step writes the whole level.On this card
CreateReservedResourceis 72 % of the 21.7 s (timers above), so for XCL the first point looks like the one to try: place the texture's record now and make the reserved resource when a view of it is first bound or it is copied. That needs the descriptor side (null slot now, filled at first use) and aliasing to agree; I have not written it.AI use: Claude Code (Claude Opus 5.5) read the code and wrote this on the maintainer's behalf.
@thehollowedone on GitHub · 2026-11-25 03:41 UTC · original · edited 2026-11-25 13:35 UTC
Independent RTX 3080 Ti recheck of b5a04adf, plus a local clean merge onto main 379725a. Windows 11 build 26300, Ryzen 7 9800X3D, NVIDIA 621.35, Rust 1.99.1 MSVC and DXC 1.8.2502.11.
Commands were
cargo build --offline --locked --workspace -j 4,cargo test --offline --locked -p xcl --lib -j 4 -- --test-threads=1 --nocapture hle::d3d12x::vram hle::d3d12x::title_textures, andcargo test --offline --locked --workspace -j 4 --no-fail-fast -- --test-threads=4 --nocapture. Synthetic fixtures only. Retail smoke and world-load timing remain untested.AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
@Toons29 on GitHub · 2026-11-25 13:38 UTC · original
Regression run of
b5a04adfon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon1a0bbe3a, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 101 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.@Royalflamejlh on GitHub · 2026-11-25 15:18 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA: the packing works here, and in the title local video memory was 48 to 80 MB lower at 28 s and about 900 MB lower after the world load's first 3,830 to 3,837 DirectStorage requests, in 3 of 3 runs. vkd3d-proton gives these textures 4 KiB alignment, and your GPU test packed 512 BC1 textures into 2 MiB of one 16 MiB pool. There was no fault and no new warning in 3 runs with it and 3 without.
Setup:
mainf087b99+ #684e56dbc3+ #1835b5a04ad(local merge099ab53), againstmainf087b99+ #684 (local merge2f6a4ae). RTX 4070 12 GB (615.71.09), Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, release, Series X profile, the first-run screens completed once and no story progress, 120 s, the two trees in turn, A pressed at 16.2 to 18.3 s,XCL_PSO_PRELOAD=0,WINEDEBUG=err+all,fixme-all.main+ #684 (3 runs)small texture pool CreateHeapwarningsgpu_small_textures_pack_at_4k_granularity_and_preserve_pixelswith--nocaptureprinted512 x 64x64 BC1: +2097152 B in small pools (pool=16777216 B), +2097152 B total (vs 33554432 B as 64 KiB tiles)and passed. Thevram_small,title_texturesandvramtests together: 33 passed, 1 ignored (--test-threads=4).vram_small.rs:451,:459,:495,:522,:589: no device, heap tier, 4 KiB placement for BC1 and for RGBA8, tiled tier) leave byprintln!andreturn, so on an adapter that fails one of them it passes having tested less, and a run without--nocapturedoes not show theSKIPPEDline.crate::gpu::recomp::runner::skip_testwrites aSKIPPEDline that does show.Not tested: the time spent placing textures and the number of reserved resources (the maintainer's timing comment above); not rebuilt on
main06c9f55(it merges there without conflicts); the rest ofcargo test --workspace; Windows; AMD and Intel; runs past 120 s.AI use: Claude Code (Claude Opus 5.5) ran the title and the tests and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
@raylitebull on GitHub · 2026-11-25 18:17 UTC · original
Thanks
@Royalflamejlh,@ivall,@thehollowedone, and@Toons29for the Wine/RTX 4070 measurements, RDNA4 notes, and test runs!Rebased
#1835cleanly onto73e3aba6(5005620c):#2306(XCL_TEXTURE_LEVEL_PAGES=1) invram.rs: orderedplace_pagescleanly (console_has_packed_3d_mips->vram_small::placefor< 64 KiBnon-aliasing textures ->#2306lazyplace_on_pages, keepingmap_levels/has_lazy_levels).runner::skip_test(vram_small.rs): replaced all 5println!("SKIPPED ...")early exits ingpu_small_textures_pack_at_4k_granularity_and_preserve_pixelswithcrate::gpu::recomp::runner::skip_test(...)per@Royalflamejlhso adapter capability skips print even without--nocapture.@ivall's RDNA4place_pagesnotes: agreed —CreateReservedResourceaccounts for ~72–79% ofplace_pagescost on RDNA4 (whichvram_smallalready avoids directly for< 64 KiBsampled textures; deferring reserved-resource creation to first descriptor bind is a natural orthogonal follow-up).5005620c):cargo check --workspace --testsPASS (0new warnings) +cargo test -p xcl --lib -- --nocapture --test-threads=1 "hle::d3d12x::vram" "hle::d3d12x::title_textures"->38 passed, 0 failed, 1 ignored(3.01s, including#2306'sa_placed_texture_gets_the_pages_of_a_level_with_its_texelsand all 3 steps ofgpu_small_textures_pack_at_4k_granularity_and_preserve_pixelswith0skips).Pushed
5005620c!@DavidM1911 on GitHub · 2026-11-26 06:28 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.