upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_command_objects.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/d3d12_command_objects.md')
-rw-r--r--docs/d3d12_command_objects.md14
1 files changed, 8 insertions, 6 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
363vtable pointer of a public object. 363vtable 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
390argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the 392argument shape at the call and, where marked "run", by the call seen in the run. Rows marked "inferred" fit the