diff options
| author | Størm <52797150+AC-Storm-YT@users.noreply.github.com> | 2026-11-21 21:03:11 -0500 |
|---|---|---|
| committer | Størm <52797150+AC-Storm-YT@users.noreply.github.com> | 2026-11-21 22:57:55 -0500 |
| commit | 0bad3d7aed3e8a5d7a820582f5c70f2d2c1a322f (patch) | |
| tree | 4a4b44bbecc23a7612d49b0fb1d7b6e91f0a948a /runtime/shims/gameinput.cpp | |
| parent | 4a36bb19979b611f525d027f92e0fefad1626546 (diff) | |
Runtime: reserved resources follow AMD's standard/packed mip split (D3D-65)
D3D12 leaves where the packed tail starts to the driver (#654 made the test
accept any host's split). The layer used NVIDIA's: packed from the first mip
smaller than a tile on any axis. The console is RDNA2, so it now follows AMD's
PC runtime, as @traeb0n (D3D-20) recommended on #634.
AMD's rule, 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: a mip stays standard
while it is wider than half the tile or taller than the tile; depth does not
count. It fits all 47 measured layouts: compare_tiling's 17 and 30 edge cases
(a mip exactly at or just past half a tile, thin and tall textures, non-square
2D and volume tiles). The rule first proposed on #374 ("every axis at most half
the tile's largest side") fitted the 17 but missed four tall or deep ones.
- src/resource_tiling.h: the new split; a standard mip smaller than a tile
takes one tile on that axis.
- resource_tiling_test: the five layouts that change expect the AMD values,
plus a table of all 47 AMD layouts checking standard and packed mips, the
packed start and NumTilesForPackedMips (AMD's in 45; for the two deep
volumes that pack from mip 0, AMD reserves 2 tiles and the layer's tight
count gives 1).
- docs/d3d12_vulkan.md 4.2: the rule and the measurement.
AI-assisted (Claude Code).
Diffstat (limited to 'runtime/shims/gameinput.cpp')
0 files changed, 0 insertions, 0 deletions