Repository navigation
GPU: load the DirectX 12 Agility SDK, and map the console's packed 16… - #968
bailu12300 wants to merge 1 commit into
Conversation
…-bit colour targets
- Export D3D12SDKVersion/D3D12SDKPath and link them into the binary's export
table (build.rs), so the D3D12 runtime loads D3D12Core.dll from ./D3D12/
instead of the in-box copy. Windows 10's 19041 runtime refuses the title's
0xC01 root signatures (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED |
SAMPLER_HEAP_DIRECTLY_INDEXED | ALLOW_INPUT_ASSEMBLER), which cost every
pipeline: drawn=0, no pipeline ever created, and a 0xC0000005 fault about
5 s in. With Agility 1.614 the same host builds the full pipeline set and
holds 30 fps through the account picker, the startup art and the legal
notice.
- pc_format: map 86 (B5G5R5A1_UNORM) and 115 (B4G4R4A4_UNORM) to
R8G8B8A8_UNORM. Both are render targets on the console but take no
unordered access (86) and no render target at all (115) on the host, so
the title's UI composition targets failed to create ("no host texture
error 0x80070057", format: 86 and 115) and the whole UI layer drew
nothing. Their 8-bit RGBA stand-in is a superset of both in range, so a
target that only carries colour through the pipeline loses nothing but
the packing.
Verified on Windows 10 Pro 19045, RTX 5060 8 GB, title 1.0.2.1:
no host texture count 0, menus at 30 fps, and the prologue title card renders.
|
Test report on a second NVIDIA card and Windows 11 (no Agility folder present). Setup: Windows 11 Pro 26200, RTX 4060 Ti (driver 32.0.16.1088), Rust 1.98.1, diagnostics build of Host support, queried with
WARP takes both formats with every use, so these failures are hardware-specific. Packed 16-bit textures the title creates up to the account screen (logged locally in
Results:
The identical frames are expected on this screen; the targets matter later (#797). One concern: |
|
Follow-up to my test report above: with this PR on the same machine (RTX 4060 Ti, Windows 11), the prologue cutscene is still black (audio and credits only), matching the #89 results on RTX 3060 / 4070 SUPER in #797. So these two targets are not what keeps it black; my earlier note that they "matter later (#797)" was wrong on that point. The |
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #463. Two unrelated changes in one PR: an unconditional Agility SDK export through a new build.rs and a If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
…-bit colour targets
Export D3D12SDKVersion/D3D12SDKPath and link them into the binary's export table (build.rs), so the D3D12 runtime loads D3D12Core.dll from ./D3D12/ instead of the in-box copy. Windows 10's 19041 runtime refuses the title's 0xC01 root signatures (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED | ALLOW_INPUT_ASSEMBLER), which cost every pipeline: drawn=0, no pipeline ever created, and a 0xC0000005 fault about 5 s in. With Agility 1.614 the same host builds the full pipeline set and holds 30 fps through the account picker, the startup art and the legal notice.
pc_format: map 86 (B5G5R5A1_UNORM) and 115 (B4G4R4A4_UNORM) to R8G8B8A8_UNORM. Both are render targets on the console but take no unordered access (86) and no render target at all (115) on the host, so the title's UI composition targets failed to create ("no host texture error 0x80070057", format: 86 and 115) and the whole UI layer drew nothing. Their 8-bit RGBA stand-in is a superset of both in range, so a target that only carries colour through the pipeline loses nothing but the packing.
Verified on Windows 10 Pro 19045, RTX 5060 8 GB, title 1.0.2.1: no host texture count 0, menus at 30 fps, and the prologue title card renders.