diff options
| author | omardev29 <154835571+omardev29@users.noreply.github.com> | 2026-11-22 13:28:38 +0100 |
|---|---|---|
| committer | omardev29 <154835571+omardev29@users.noreply.github.com> | 2026-11-22 13:42:04 +0100 |
| commit | f669f59fd0fe327fa0d30fb168708779e855d8ea (patch) | |
| tree | 493442e333f67424bdadfdab0e6c307d046d8ddb /docs | |
| parent | b277512f9be927c190e9f313d9502d419d21f674 (diff) | |
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).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_command_objects.md | 14 | ||||
| -rw-r--r-- | docs/d3d12_vulkan.md | 12 |
2 files changed, 15 insertions, 11 deletions
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 | |||
| 363 | vtable pointer of a public object. | 363 | vtable pointer of a public object. |
| 364 | 364 | ||
| 365 | - **Slot 67** (call at `0x56d9`) is **not** the PC `CreateProtectedResourceSession1`: it takes `(desc, riid, out)` | 365 | - **Slot 67** (call at `0x56d9`) is **not** the PC `CreateProtectedResourceSession1`: it takes `(desc, riid, out)` |
| 366 | with `IID_ID3D12PipelineState` and a console-only desc: the root signature at `+0x00`, two pointers into the DLL | 366 | with `IID_ID3D12PipelineState`. The DLL's own messages name it `DeserializeComputePipelineStateX`. Its desc is the |
| 367 | with sizes (`0x1c` and `0x14` bytes here) at `+0x08`..`+0x20`, and a copy of a code blob at `+0x28` with its size | 367 | root signature at `+0x00`, then pointer and size pairs for the shader's `FSPX` entries: kind 0 at `+0x08`, kind 1 |
| 368 | at `+0x30` (`0x1080` bytes here; most likely the shader's native code). The proxy used to forward it to the PC | 368 | at `+0x18`, a copy of the kind-6 program at `+0x28`, and kind 7 at `+0x38` ([fspx.md](fspx.md)). The proxy used to |
| 369 | method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes slot 62. | 369 | forward it to the PC method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes |
| 370 | slot 62; its message for that failure calls the fallback "NewBE". | ||
| 370 | - **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC | 371 | - **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC |
| 371 | runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns | 372 | runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns |
| 372 | `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a | 373 | `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. | |||
| 383 | of the leading `2`. | 384 | of the leading `2`. |
| 384 | - The DLL's 29 shaders are `DXBC` containers with `SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `HASH` and `ACCC` parts | 385 | - The DLL's 29 shaders are `DXBC` containers with `SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `HASH` and `ACCC` parts |
| 385 | and no `DXIL`. The `ACCC` payload starts with the tag `FSPX` in all 29; the game's own native shaders are `FSSM` | 386 | and no `DXIL`. The `ACCC` payload starts with the tag `FSPX` in all 29; the game's own native shaders are `FSSM` |
| 386 | inside `XBCH` ([design.md](design.md)). What `FSPX` holds, and whether the existing unpacker and translator can | 387 | inside `XBCH` ([design.md](design.md)). `FSPX` is a directory around an uncompressed RDNA2 program and its |
| 387 | take it, is open; running FSR needs that, not the executable. | 388 | dispatch state; `tools/fspx_unpack.py` unpacks it for the translator, which takes 13 of the 29 today. The 13 that |
| 389 | use `v_dot4` instructions are not translated yet ([fspx.md](fspx.md)). | ||
| 388 | 390 | ||
| 389 | **Command list.** The console list is **not** the PC order past `ResourceBarrier`. Each row is backed by the | 391 | **Command list.** The console list is **not** the PC order past `ResourceBarrier`. Each row is backed by the |
| 390 | argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the | 392 | argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the |
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index b6010dd3b..733ff5f43 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2620,11 +2620,13 @@ on a PC device behind the Xbox-ABI proxy). Measured: | |||
| 2620 | (61), and there are console-only methods at 85 and 141. The list object also carries a write cursor and limits | 2620 | (61), and there are console-only methods at 85 and 141. The list object also carries a write cursor and limits |
| 2621 | (`+0x18`, `+0x28`, `+0x30`) the DLL writes commands through while there is room. Table and evidence: | 2621 | (`+0x18`, `+0x28`, `+0x30`) the DLL writes commands through while there is room. Table and evidence: |
| 2622 | [d3d12_command_objects.md §3.5a](d3d12_command_objects.md). | 2622 | [d3d12_command_objects.md §3.5a](d3d12_command_objects.md). |
| 2623 | Device slot 67 is a console-only compute-pipeline call (a code blob in its desc), not the PC method at that | 2623 | Device slot 67 is a console-only compute-pipeline call, `DeserializeComputePipelineStateX` in the DLL's own |
| 2624 | index; the proxy now refuses it. The dispatch stops where the PC runtime refuses the DLL's compute code at slot | 2624 | messages, not the PC method at that index; the proxy now refuses it. The dispatch stops where the PC runtime |
| 2625 | 62: the DLL's shaders carry an `ACCC` part instead of DXIL. | 2625 | refuses the DLL's compute code at slot 62: the DLL's shaders carry an `ACCC` part instead of DXIL, an `FSPX` |
| 2626 | - Its `throw 1` reaches the caller: `_CxxThrowException` finds no image base for a manually mapped image, so the | 2626 | payload with an RDNA2 program ([fspx.md](fspx.md)). |
| 2627 | DLL's own handlers cannot catch it (the loader gap `tiny_game`'s `LEONIDA_RUN_EH` check also shows). | 2627 | - Its `throw 1` reaches the caller. Before #965 the throw carried an image base of 0, because `_CxxThrowException` |
| 2628 | did not know manually mapped images; with #965 it carries the DLL's base, and the DLL still does not catch it on | ||
| 2629 | that path (measured with `fsr_dispatch_test` and `LEONIDA_FSR_NO_STANDIN=1`). | ||
| 2628 | - `xmem.dll!XMemGetWorkingSetStatistics` takes two arguments, `(0x20000001, stats*)`, at all seven call sites; | 2630 | - `xmem.dll!XMemGetWorkingSetStatistics` takes two arguments, `(0x20000001, stats*)`, at all seven call sites; |
| 2629 | the one-argument shim wrote through the constant. Fixed in `runtime/shims/xmem.cpp`. | 2631 | the one-argument shim wrote through the constant. Fixed in `runtime/shims/xmem.cpp`. |
| 2630 | 2632 | ||