Repository navigation
Conversation
…byte elements VOLUME_PATTERNS_4K rows 1, 2 and 4 and the matching tile extents in tex_headers._VOLUME_4K_TILE matched no GFX10 pattern in Mesa addrlib. They now follow GFX10_SW_4K_S3_PATINFO (the RbPlus table is identical, and so is rpf9-explorer's VolumePatterns): 2-byte tiles are 8x16x16, 4-byte 8x16x8, 16-byte 4x8x8. In the 1.0.2.1 corpus this changes the one R16_FLOAT volume (ttdb_graphics ItsNotRexed#901): adjacent-Y voxel differences fall from 0.357 to 0.067 of the random-pair level, adjacent-Z from 0.029 to 0.007, and the check's 3D Z-diff from 0.023623 to 0.004238 (29.3x below the 2D control instead of 5.3x). The two 8-byte volumes are unchanged. New VolumePatternTest pins the table to addrlib's rows and checks the extents follow from it; it fails on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent CPU validation on Windows, retail 1.0.2.1. Scanned all 357,115 descriptors in 57 TTPF pools and found three dimension-3 descriptors, each with one mip. Compared the complete voxel payload after the 148-byte DDS header from Python On the 2-byte volume, 65,525 of 65,536 voxels differed on parent |
|
Verified b43a9da on CachyOS Linux, Python 3.14.10.
Checks: all five VOLUME_PATTERNS_4K rows use each X, Y and Z bit exactly once from bit 0, and the new tile extents are 4096 bytes each (8x16x16x2, 8x16x8x4, 4x8x8x16), consistent with a 4 KB tile. The new unit test hard-codes the same rows it compares against, so that part is self-consistent; I could not decode addrlib's pattern indices here to confirm the rows independently. Negative control: not applicable, no translator change. Not run: the corpus Z-diff numbers in the docs (no game data available). No functional issues found. |
|
Reproduced b43a9da merged onto main (clean
These are exactly your numbers; only the 2-byte volume moves. |
The preflight asked for all 300 GB of the assets stage free unless xma.done said the exports were finished, so a build stopped part-way through the assets (279 GB written, 280 GB free) refused to resume. tree_bytes() sums what is already under <work>/assets and the preflight subtracts it. Two tests: the subtraction and tree_bytes itself. Tested: python3 -I tests/test_make_game_preflight.py (67 tests); a real resume on Fedora 43 that had been refused. AI-assisted.
…piling alone Modules over --large-module-bytes compiled one at a time with every other thread waiting. On the translated corpus that is 695 modules (the ray-tracing compute shaders, ~14k RDNA2 instructions each, ~4.9 MB of SPIR-V), about 12 s and 2 GB each on RADV GFX1201, so the pipelines stage spent hours mostly single-threaded. large_module_gate.h lets large modules in while 512 bytes per SPIR-V byte fits 3/4 of the memory available at start (Linux: MemAvailable and the cgroup v2 memory.max room up the tree; Windows: ullAvailPhys), one always admitted when none is in, small modules never held back. Unknown memory keeps the old exclusive gate, as does --large-parallel 1. malloc_trim(0) after each large module returns what glibc kept in per-thread arenas. 40 modules (27 large), Mesa shader cache off, RX 9070 XT / Mesa 25.3.6: 297 s -> 83 s on 6 threads (7.1 -> 8.3 GB peak), 56 s on 12 threads (15.1 GB). Tested: large_module_gate_test (Linux, and the clang-cl build under Proton), ctest on Linux (40 passed, 2 skipped), vk_pipeline_check over 40 real modules in three modes, and the pipelines stage over the corpus with the gate: 26,000+ of 26,503 modules in 15 min, none failed. The largest module (26 MB of SPIR-V) was still compiling alone on RADV after 25 min, as it would under the old gate. AI-assisted.
…k-memory-budget vk_pipeline_check: large modules share a memory budget instead of compiling alone
…flight-resume make_game: count assets already exported when a stopped build resumes
# Conflicts: # tests/test_ttpf_mips.py
|
Tested
No game files, so I couldn't run |
|
Tested 67dfec1 (merge base 03b09a0) on NVIDIA GeForce RTX 5080, Linux 580.65.06: pass Tested the PR head merged with current main
Line-by-line against my main run (results that differ from main):
Not run: AI-assisted (Claude Code). |
|
Tested 67dfec1 merged with main 98fa503 (merged tree 7f408ee48b) on native Windows 11, Python 3.13.1: pass. Control: main's |
tools/ttpf_mips.py'sVOLUME_PATTERNS_4K(3DSW_4KB_Sintra-tile bit order) and the matching tile extents intools/tex_headers.py's_VOLUME_4K_TILEwere wrong for 2-, 4- and 16-byte elements. This sets them to AMD's.Source. Mesa
src/amd/addrlib/src/gfx10/gfx10SwizzlePattern.h,GFX10_SW_4K_S3_PATINFO(nibble01 + nibble2 entries for 1/2/4/8/16 bpe);GFX10_SW_4K_S3_RBPLUS_PATINFOgives the same rows, and rpf9-explorer'sVolumePatternsalready has them. Rows 0 (1 B) and 3 (8 B) already matched. The old rows 1, 2 and 4 occur in no GFX10 pattern in that header. The tile extents follow from the bit counts: 2 B 16×8×16 → 8×16×16, 4 B 8×8×16 → 8×16×8, 16 B 8×4×8 → 4×8×8.Effect on the 1.0.2.1 corpus (3 volumes, counts only):
ttdb_graphics.ttpfRuntime: no heap allocation per barrier, clear or copy in replay (Depends on #893) #901, 256×32×8 R16_FLOAT): neighbour differences as a share of random-pair differences go from x/y/z = 0.007/0.357/0.029 to 0.015/0.067/0.007. The check's 3D Z-diff goes from 0.023623 to 0.004238 against the same 2D control (0.124305): 29.3× smoother instead of 5.3×. The old Z-only check passed because the wrong order still kept most Z neighbours together.Changes: the two tables (with a comment naming the addrlib source),
docs/textures_arrays.md(the #901 row and a note on the correction), andtests/test_ttpf_mips.pyVolumePatternTest: pins the table to addrlib's rows, checks every row uses each X/Y/Z bit once from bit 0, and checks_VOLUME_4K_TILEandvolume_surface_layoutfollow from the bit counts. On main the pin test fails (the existing round-trip test can't catch it: it re-tiles with the same table).Tested:
python -I tests/test_ttpf_mips.py66/66 OK;tests/test_tex_headers.py60/60 OK;tests/test_docs_links.pyOK. No GPU needed. No game data committed.Claim: in #2516. AI-assisted (Claude Code).
🤖 Generated with Claude Code