upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/github-metadata-export.md
diff options
context:
space:
mode:
authoriasmition salvatore <292617747+iasmitionsalvatore@users.noreply.github.com>2026-11-22 13:37:53 -0300
committeriasmition salvatore <292617747+iasmitionsalvatore@users.noreply.github.com>2026-11-23 09:31:05 -0300
commit0a08dbb02b70988e39d1729d257701419804a4de (patch)
tree70dd8be887faefc61e4f47e649725d7497887b91 /docs/github-metadata-export.md
parent561b65a832218fbb9e6d2effd392a8eef093a3f8 (diff)
d3d12 Vulkan: align copyable footprints from BaseOffset, not from 0
GetCopyableFootprints started the layout at BaseOffset and aligned every subresource to D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT as an absolute address. The PC runtime lays the subresources out from 0 and adds the base afterwards: with base 513 the host returns offset 513 for subresource 0, ours returned 1024, and the totals differed by the gap. GetCopyableFootprints1 wraps the same function. compare_footprints now also runs bases 513 and 2^32 + 1 (both unaligned) next to 0 and 1024. Against the hardware host device on an AMD Radeon RX 7600, on main 561b65a8, the old code gives 652 mismatching fields (offsets and totals), all at the two new bases: with only 0 and 1024 it gives none, which is why this went unnoticed. With the fix there are none at any base. No caller in the runtime passes an unaligned base (the only internal caller is GetCopyableFootprints1). AI-assisted. Tested on AMD Radeon RX 7600, driver 26.11.2 (LLPC), Windows 10 22H2 (in-box d3d12core 10.0.19041), MSVC 14.44. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/github-metadata-export.md')
0 files changed, 0 insertions, 0 deletions