Repository navigation
Conversation
The texel estimate can exceed 1 GiB for committed BC textures that fit once swizzled. The normalized PC description discards the guest layout, and a tightly packed block count can miss guest tile padding. Record the supported XG size on a BC resource when the legacy estimate rejects it. Keep the lazy reservation limit and existing addresses. On an RTX 3080, the 128 by 16384 BC1 array had a 128 MiB D3D12 allocation and a 512 MiB guest layout. Assisted-by: Codex (GPT-6.2 Sol high)
|
The two BC1 fixtures on A local change compared the padded guest requirement with the legacy reservation before discarding the original description. It kept the legacy reservation when sufficient and used the recorded layout when more space was needed, with the same cap at reservation time. All four OpenAI Codex (GPT-6.2 Astra) assisted with verification. |
|
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean One more passing test than main: sizing large BC texture addresses from the guest layout is covered and green. Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Thanks for testing this. The current fix covers the large-allocation fallback. Your example points to a separate early return that can discard a larger layout size below the cap. I’ll check that path with the narrow BC array before deciding whether to include it in this PR. |
|
Test report for this PR's head Tested
SKIPPED tests (the same on
|
A valid committed BC texture could receive a zero CPU address (#548).
What is in it
real.rs uses the guest XG layout for the fallback reservation. Adds a BC1 regression and updates README.md.
Tested
RTX 3080 616.92, Ryzen 7 5700X, Win11 26200.9457, Rust 1.100.0 MSVC. Debug scripts/test.ps1 --nocapture: 685 passed, 0 failed, 41 ignored. Four runtime skips: two native wave64 and two debug-layer cases. The BC1 test failed on main and passed here with a 512 MiB guest layout and 128 MiB PC allocation.
Regression run
Release, same title, 60 s, no input.
Not tested
AMD, Intel, Windows 10 or use of this fallback by the retail title.
AI use
Codex GPT-6.2 Sol high wrote and tested the patch. GPT-6.2 Sol xhigh prepared the comparisons and description; a separate Sol xhigh independently reviewed and GPU-tested it.