OLD-9879: resource_detile: strip-mined cache-line micro-tile copies (PERF-RESOURCE-DETILE) #1650

Open
github-bot wants to merge 1 commit from github-bot/gh-1650 into main AGit
Owner

@⁠Tortoche on GitHub · 2026-11-25 07:04 UTC · original
Tortoche:old-9879 → main · +330 −43 · 2 files · 1 commits · open

Claim: #1570 (OLD-9879 / Draft #146, originally authored by ChAlanA)

Summary:

  • Optimizes with strip-mined cache-line micro-tile copies (bit-identical, faster detiling).
  • Adds validation & round-trip checks in .

Verification (Linux):

  • -> OK
  • [100%] Built target resource_detile_test -> OK
  • resource detile: all 64 KiB GFX10 swizzle round-trip and validation checks passed ->

AI-assisted: yes

**@⁠Tortoche** on GitHub · 2026-11-25 07:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1650) `Tortoche:old-9879` → `main` · +330 −43 · 2 files · 1 commits · open Claim: #1570 (OLD-9879 / Draft #146, originally authored by ChAlanA) Summary: - Optimizes with strip-mined cache-line micro-tile copies (bit-identical, faster detiling). - Adds validation & round-trip checks in . Verification (Linux): - -> OK - [100%] Built target resource_detile_test -> OK - resource detile: all 64 KiB GFX10 swizzle round-trip and validation checks passed -> AI-assisted: yes
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:27 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 09:52 UTC · original

Independent verification (native Windows): per-BPE verify_microtile_layout_64k proofs are static_asserts — clean build proves the memcpy tables match the LUT; edge tails reviewed (right-edge scalar tail, bottom-edge run/scalar tail; tile_cols always multiple of micro_w, strips cannot straddle tile bands — no overrun). resource_detile_test.exe passes claimed output; exhaustive new scalar-reference test covers all BPEs × edge remainders × block_dim; d3d12_vulkan_device.cpp (sole includer) rebuilds clean. CPU-only path — bit-identical output is the verifiable part; perf claim not re-measured. Authorship preserved (ChAlanA). AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 09:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1650#issuecomment-7158926460) Independent verification (native Windows): per-BPE `verify_microtile_layout_64k` proofs are `static_assert`s — clean build proves the memcpy tables match the LUT; edge tails reviewed (right-edge scalar tail, bottom-edge run/scalar tail; `tile_cols` always multiple of `micro_w`, strips cannot straddle tile bands — no overrun). `resource_detile_test.exe` passes claimed output; exhaustive new scalar-reference test covers all BPEs × edge remainders × block_dim; `d3d12_vulkan_device.cpp` (sole includer) rebuilds clean. CPU-only path — bit-identical output is the verifiable part; perf claim not re-measured. Authorship preserved (ChAlanA). AI-assisted verification.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1650/head:github-bot/gh-1650'
git switch 'github-bot/gh-1650'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1650'
git switch 'github-bot/gh-1650'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1650'
git switch 'github-bot/gh-1650'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1650'
git switch 'main'
git merge --squash 'github-bot/gh-1650'
git switch 'main'
git merge --ff-only 'github-bot/gh-1650'
git switch 'main'
git merge 'github-bot/gh-1650'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.