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:
authorSWAYAM <swa122yam.com>2026-11-22 18:57:50 +0530
committerSWAYAM <swa122yam.com>2026-11-22 19:34:10 +0530
commitaf236e196bdcbaf90c7cba9ce0b3668521d0afc8 (patch)
tree7e22682ee3dde199f696cf5e455e5fef5f344afc /docs/d3d12_command_objects.md
parent89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff)
d3d12_xs: route slot 67 compute pipeline from native code to CreateComputePipelineState (RT-99)
Xbox device slot 67 takes (desc, riid, out) with IID_ID3D12PipelineState and a console-only descriptor with the root signature at +0x00 and code blob pointer/size at +0x28/+0x30. Previously it logged and returned E_NOTIMPL. Route it to CreateComputePipelineState on the PC device (slot 11) like slot 62, mapping the console descriptor to D3D12_COMPUTE_PIPELINE_STATE_DESC. On the Vulkan device this resolves through the translator via fssm_program and ShaderLibrary. - Implement proxy_create_compute_pipeline_from_native_code in d3d12_xs_device.cpp - Update device_proxy_test to verify slot 67 thunk, compute PSO creation over WARP, and argument checks - Update d3d12_compute_test to verify slot 67 compute PSO creation on the Vulkan device - Update documentation in d3d12_command_objects.md and d3d12_vulkan.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_command_objects.md')
-rw-r--r--docs/d3d12_command_objects.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md
index a55c3d964..497431d8f 100644
--- a/docs/d3d12_command_objects.md
+++ b/docs/d3d12_command_objects.md
@@ -371,9 +371,10 @@ vtable pointer of a public object.
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`. The DLL's own messages name it `DeserializeComputePipelineStateX`. Its desc is the 372 with `IID_ID3D12PipelineState`. The DLL's own messages name it `DeserializeComputePipelineStateX`. Its desc is the
373 root signature at `+0x00`, then pointer and size pairs for the shader's `FSPX` entries: kind 0 at `+0x08`, kind 1 373 root signature at `+0x00`, then pointer and size pairs for the shader's `FSPX` entries: kind 0 at `+0x08`, kind 1
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 374 at `+0x18`, a copy of the kind-6 program at `+0x28`, and kind 7 at `+0x38` ([fspx.md](fspx.md)). The proxy maps the
375 forward it to the PC method at the same index; it now refuses it (`E_NOTIMPL`). When it fails, the DLL takes 375 console desc to `D3D12_COMPUTE_PIPELINE_STATE_DESC` and routes it to `CreateComputePipelineState` (PC slot 11). On a
376 slot 62; its message for that failure calls the fallback "NewBE". 376 PC device that call fails (`E_FAIL`) because the code is not a PC shader, so the DLL falls back to slot 62; its message
377 for that failure calls the fallback "NewBE".
377- **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC 378- **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC
378 runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns 379 runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns
379 `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a 380 `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a