Skip to content

xg: coalesce contiguous elements in tiled color texture transfers - #248

Draft
Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/xg-contiguous-texture-spans-20261126
Draft

Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/xg-contiguous-texture-spans-20261126

Conversation

@Valdi320

Copy link
Copy Markdown
Contributor

Change

Coalesce horizontal spans of adjacent storage elements where the existing 2D color swizzle equations guarantee contiguity. Clip the last span at the logical width; preserve the element-by-element path for depth/stencil, MSAA, volume, packed tails and unknown swizzles. No layout ABI or address equation changes.

Measurements

Host release-mode synthetic copy loop, 2049x1025 logical texture, seven alternating upload trials, median:

Format/layout Span Old -> new
R8 4 KiB 16 25.895 -> 1.564 ms
RGBA8 4 KiB 4 25.798 -> 6.980 ms
RGBA8 64 KiB 4 29.766 -> 8.472 ms
BC1 64 KiB 2 1.558 -> 0.819 ms
Both full backing allocations and downloaded pitched buffers are byte-identical to element-by-element copies, including padding. Synthetic CPU transfer loop, not measured retail FPS.

Validation

  • New host property test compares 23,396,004 addresses across layout variants, mip levels, array layers and hardware revisions, including 2,765,956 grouped spans. All six no-GPU groups pass.
  • Rebuilt XG: 4/4 provider checks pass under GE-Proton11-14, including bidirectional library copies and 10,103,777 address comparisons.
  • Rebuilt D3D12: 8/8 Lanes gates on RTX 4080 with unchanged fixture staged with new provider.
  • The optional native reference DLL was unavailable, so its three comparison gates were not run successfully; no claim of native differential or full GPU/AMD validation. No retail data included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant