upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorStørm <52797150+AC-Storm-YT@users.noreply.github.com>2026-11-22 12:56:50 -0500
committerStørm <52797150+AC-Storm-YT@users.noreply.github.com>2026-11-22 12:56:50 -0500
commite14b88fc5ca00480df02ee4c0b5433cb1c2143ef (patch)
treeab47e68e991ad2ac164e65461c19c80b8ea2a1c5 /runtime/test/loader_test.cpp
parent49475796c226c8511b9470bf97a4daf57b8af323 (diff)
Runtime: reserved resources report AMD's packed tile count (D3D-65 follow-up)
The layer gave the packed tail its tight linear size in whole tiles. AMD's PC runtime gives it one tile per tile-depth slice it spans: ceil(depth of the first packed mip / tile depth), so 1 for every 2D layout and a step at each tile depth for volumes (8x8x32 R8: 1 tile, 8x8x33: 2, 8x8x256: 8), even where the bytes would fit in fewer (16x16x128 RGBA8: 8 tiles for 3 tiles of data). Measured on an RX 9070 XT (RDNA4, 32.0.31041.1004) and a Ryzen 7 9800X3D iGPU (RDNA2, 32.0.21045.5002), identical on both: the rule fits all 83 layouts, the 47 from #868 (where it explains the two deep volumes AMD gave 2 tiles) and 36 new volumes whose tail is deeper than a tile, including tails that start after standard mips. It matters once sparse textures (D3D-285) reach mip tails. - src/resource_tiling.h: packed tiles = max(1, tight size, tail depth slices). - resource_tiling_test: the two deep volumes expect 2, plus the 36 new volumes with AMD's values. - docs/d3d12_vulkan.md 4.2: the rule and the measurement. AI-assisted (Claude Code).
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions