From f669f59fd0fe327fa0d30fb168708779e855d8ea Mon Sep 17 00:00:00 2001 From: omardev29 <154835571+omardev29@users.noreply.github.com> Date: Sun, 22 Nov 2026 13:28:38 +0100 Subject: docs: slot 67's name and desc, FSPX decoded, and the C++ throw after #965 d3d12_command_objects.md 3.5a: slot 67 is DeserializeComputePipelineStateX with its full desc (kind 0, 1, 6, 7 pointer/size pairs), and the open "what FSPX holds" line now points at fspx.md (13 of 29 translate). d3d12_vulkan.md A.3: the same name, and the throw: before #965 it carried an image base of 0; with #965 it carries the DLL's base and still reaches the caller (fsr_dispatch_test, LEONIDA_FSR_NO_STANDIN=1). --- docs/d3d12_command_objects.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/d3d12_command_objects.md') diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md index 3a346edff..ac49399b5 100644 --- a/docs/d3d12_command_objects.md +++ b/docs/d3d12_command_objects.md @@ -363,10 +363,11 @@ that byte therefore sees this DLL's descriptor copies as calls. Like the list's vtable pointer of a public object. - **Slot 67** (call at `0x56d9`) is **not** the PC `CreateProtectedResourceSession1`: it takes `(desc, riid, out)` - with `IID_ID3D12PipelineState` and a console-only desc: the root signature at `+0x00`, two pointers into the DLL - with sizes (`0x1c` and `0x14` bytes here) at `+0x08`..`+0x20`, and a copy of a code blob at `+0x28` with its size - at `+0x30` (`0x1080` bytes here; most likely the shader's native code). The proxy used to forward it to the PC - method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes slot 62. + with `IID_ID3D12PipelineState`. The DLL's own messages name it `DeserializeComputePipelineStateX`. Its desc is the + root signature at `+0x00`, then pointer and size pairs for the shader's `FSPX` entries: kind 0 at `+0x08`, kind 1 + at `+0x18`, a copy of the kind-6 program at `+0x28`, and kind 7 at `+0x38` ([fspx.md](fspx.md)). The proxy used to + forward it to the PC method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes + slot 62; its message for that failure calls the fallback "NewBE". - **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a @@ -383,8 +384,9 @@ vtable pointer of a public object. of the leading `2`. - The DLL's 29 shaders are `DXBC` containers with `SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `HASH` and `ACCC` parts and no `DXIL`. The `ACCC` payload starts with the tag `FSPX` in all 29; the game's own native shaders are `FSSM` - inside `XBCH` ([design.md](design.md)). What `FSPX` holds, and whether the existing unpacker and translator can - take it, is open; running FSR needs that, not the executable. + inside `XBCH` ([design.md](design.md)). `FSPX` is a directory around an uncompressed RDNA2 program and its + dispatch state; `tools/fspx_unpack.py` unpacks it for the translator, which takes 13 of the 29 today. The 13 that + use `v_dot4` instructions are not translated yet ([fspx.md](fspx.md)). **Command list.** The console list is **not** the PC order past `ResourceBarrier`. Each row is backed by the argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the -- cgit v1.2.3