diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 08:08:35 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 08:08:35 -0500 |
| commit | 54575594ab001639d53c6f0f14da0e9142f7b29d (patch) | |
| tree | e90976ea99ee28fcf3d5c1a3c5e02f114cd18250 /docs/d3d12_command_objects.md | |
| parent | f5d31f02ae37948b0be45ae6dfc07401b54486e2 (diff) | |
| parent | f669f59fd0fe327fa0d30fb168708779e855d8ea (diff) | |
Merge pull request #1661 from omardev29
Diffstat (limited to 'docs/d3d12_command_objects.md')
| -rw-r--r-- | docs/d3d12_command_objects.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md index ae189f0c4..a55c3d964 100644 --- a/docs/d3d12_command_objects.md +++ b/docs/d3d12_command_objects.md | |||
| @@ -369,10 +369,11 @@ that byte therefore sees this DLL's descriptor copies as calls. Like the list's | |||
| 369 | vtable pointer of a public object. | 369 | vtable pointer of a public object. |
| 370 | 370 | ||
| 371 | - **Slot 67** (call at `0x56d9`) is **not** the PC `CreateProtectedResourceSession1`: it takes `(desc, riid, out)` | 371 | - **Slot 67** (call at `0x56d9`) is **not** the PC `CreateProtectedResourceSession1`: it takes `(desc, riid, out)` |
| 372 | with `IID_ID3D12PipelineState` and a console-only desc: the root signature at `+0x00`, two pointers into the DLL | 372 | with `IID_ID3D12PipelineState`. The DLL's own messages name it `DeserializeComputePipelineStateX`. Its desc is the |
| 373 | with sizes (`0x1c` and `0x14` bytes here) at `+0x08`..`+0x20`, and a copy of a code blob at `+0x28` with its size | 373 | root signature at `+0x00`, then pointer and size pairs for the shader's `FSPX` entries: kind 0 at `+0x08`, kind 1 |
| 374 | at `+0x30` (`0x1080` bytes here; most likely the shader's native code). The proxy used to forward it to the PC | 374 | at `+0x18`, a copy of the kind-6 program at `+0x28`, and kind 7 at `+0x38` ([fspx.md](fspx.md)). The proxy used to |
| 375 | method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes slot 62. | 375 | forward it to the PC method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes |
| 376 | slot 62; its message for that failure calls the fallback "NewBE". | ||
| 376 | - **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC | 377 | - **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC |
| 377 | runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns | 378 | runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns |
| 378 | `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a | 379 | `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a |
| @@ -389,8 +390,9 @@ vtable pointer of a public object. | |||
| 389 | of the leading `2`. | 390 | of the leading `2`. |
| 390 | - The DLL's 29 shaders are `DXBC` containers with `SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `HASH` and `ACCC` parts | 391 | - The DLL's 29 shaders are `DXBC` containers with `SFI0`, `ISG1`, `OSG1`, `PSV0`, `RTS0`, `HASH` and `ACCC` parts |
| 391 | and no `DXIL`. The `ACCC` payload starts with the tag `FSPX` in all 29; the game's own native shaders are `FSSM` | 392 | and no `DXIL`. The `ACCC` payload starts with the tag `FSPX` in all 29; the game's own native shaders are `FSSM` |
| 392 | inside `XBCH` ([design.md](design.md)). What `FSPX` holds, and whether the existing unpacker and translator can | 393 | inside `XBCH` ([design.md](design.md)). `FSPX` is a directory around an uncompressed RDNA2 program and its |
| 393 | take it, is open; running FSR needs that, not the executable. | 394 | dispatch state; `tools/fspx_unpack.py` unpacks it for the translator, which takes 13 of the 29 today. The 13 that |
| 395 | use `v_dot4` instructions are not translated yet ([fspx.md](fspx.md)). | ||
| 394 | 396 | ||
| 395 | **Command list.** The console list is **not** the PC order past `ResourceBarrier`. Each row is backed by the | 397 | **Command list.** The console list is **not** the PC order past `ResourceBarrier`. Each row is backed by the |
| 396 | argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the | 398 | argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the |