Repository navigation
Conversation
The existing row-factorized detiler still visited swizzled textures one element at a time and recalculated block placement for every element. Large CPU-written textures therefore consumed milliseconds on the submit path even after persistent detile workers. Adapt raylitebull's 032c661 block-slab algorithm: cache the largest provably contiguous horizontal run for each immutable GFX10 layout, keep one 4 KiB/64 KiB block hot at a time, bulk-copy complete runs, and retain element-wise bounds checks for a truncated source. Low-bit base swizzles shorten runs safely; thick 3D single-slice helpers retain their former path. On this AMD EPYC 7R13 Linux host, an isolated release benchmark against 032c661's parent reduced 1920x1080 R8 mode-5 detile from 8.8-10.3 ms to 0.76-0.87 ms and tile from 28-31 ms to 0.64-0.78 ms. A 2048x2048 RGBA8 mode-10 detile fell from 28-31 ms to 9.7-11.8 ms and tile from 59-67 ms to 5.8-6.9 ms. All 17 isolated pure tiling tests passed. The Windows GNU library/test cross-check passed with the existing warnings; Windows MSVC, GPU, and smoke tests were unavailable. Source algorithm: 032c661 by raylitebull, assisted by Antigravity (Gemini 4 Neon High). Assisted-by: Codex (GPT-5.6-sol) (cherry picked from commit b81ac2e)
|
Ran the texture-tiling tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. All 17 pass, including the two new parity tests ( What this adds: the author ran the suite on an RTX 2070 SUPER and the benchmark on an RTX 4060 Laptop (in a separate issue). This host verifies the cherry-pick on a Blackwell machine; I did not repeat the timing benchmark. Not tested: the full workspace suite, a paired 60 s smoke run, the release timing numbers, AMD and Intel GPUs, native wave64, Wine, release profile, title data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
Paired Wine release measurements on Ryzen 7 7700, plus RX 9070 upload/readback checks. Tested
CPU conversion Original The local timing fixture uses Three fresh processes per revision, alternating main/head order, two warmups and five measured iterations per workload/process. Each cell below is median milliseconds [minimum, maximum] across 15 samples. Builds and the workflow's GPU checks finished before timing; no cargo/rustc processes were active at the start of that phase. CPU affinity and unrelated system activity were not controlled.
The 16-byte block case is opaque CPU block conversion, equivalent in dimensions to 2048x2048 BC7; it does not decode BC7. Linear and tiled byte hashes match between revisions for all five workloads. These are warmed CPU conversion measurements under Wine, with no inference about title loading or FPS. RX 9070 correctness The local fixture compares full tiled buffers with per-element
All 22 top-level process summaries, raw readbacks, timing samples, source inventories and executable hashes were independently checked. Build: Not tested Retail inputs, AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the diff, created the local synthetic fixtures, ran the paired checks, independently verified the evidence and drafted this report. Publication authorized by the account owner. |
|
I measured warm CPU texture preparation on Windows 11 25H2 with a Ryzen 7 5700X. I used two optimized local builds with the same instrumentation and fixture. The only code difference between them was I timed the full preparation call for eight synthetic textures spanning 24 mip levels, with both 4 KiB and 64 KiB swizzles. Across six paired rounds with alternating run order, every run produced byte-identical output. Median wall times were:
Two independent repeat rounds also favored the PR at both worker counts. These timings cover warm CPU preparation only. GPU upload and title loading were outside the measurement. I also checked truncated input directly on parent I used Codex GPT-6.2 Sol for the fixtures and measurements, and a separate GPT-6.2 Sol agent for independent verification. Codex GPT-6.2 Astra wrote this comment. I reviewed and approved this comment before posting. |
|
Independent RTX 4060 (8 GB) / Intel i5-11400F / Windows 11 release verification of PR #2820 at Setup
Targeted release unit tests (
|
Part of #1833. This is T1 from the extraction plan in #2787. It takes
b81ac2ebfrom #2778 (bmjask), unchanged. That commit adapts raylitebull's032c661ablock-slab algorithm.CPU texture tiling and detiling in
gpu/tiling.rswent through swizzled 2D textures one element at a time and worked out each element's block position again. For each GFX10 layout, this caches the longest horizontal run that is provably contiguous, works on one 4 KiB / 64 KiB block at a time, and copies whole runs in one go. It keeps the element-by-element bounds checks for a truncated source. Low base-swizzle bits make the runs shorter. Thick 3D single-slice helpers keep their existing path. The persistent detile workers (6dd9d53f) are not included.What is in it
D3D12.X: process 2D texture tiling in contiguous block runs(crates/xcl/src/gpu/tiling.rs), cherry-picked with-xfromb81ac2eb. Its two new tests compare tiled and detiled output with the element-by-element path, including base XOR.Tested
cargo test --workspace -- --test-threads=4on065f31bb: 1437 passed, 0 failed, 47 ignoredSKIPPEDon this adapter: 24 recompiler GPU tests withno wave64(or the wave32 per-lane form refused), andheap_window_out_of_memory_falls_back_to_the_switch_formwithno heap windowsmainb49be183(RTX 4060 Laptop, i5-14500HX, release) in #2787. Output checksums were identical in all 8 cases. 1920×1080 R8 mode 5 detile went from 18.75 to 0.59 ms. 2048×2048 RGBA8 mode 10 detile went from 40.14 to 5.48 ms. 2048×2048 BC7 detile went from 2.84 to 1.11 ms. I did not repeat that benchmark.Regression run
main:This PR:
Not tested
AI use
🤖 Generated with Claude Code