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:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-22 19:54:26 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-22 19:54:26 -0500
commita6f9bc4b24a1d839c94f9fb5c598f3b7b85b9f44 (patch)
tree0761fdb83eaf4ab555a8dd2f6d13d151dad636bc /docs/d3d12_command_objects.md
parent34c130c36cebd482f5e40eddb0d3e76ad30607d7 (diff)
slot 67: the description pinned from the DLL's code, a test built the DLL's way, every failed call logged
A tester on #3951 saw a slot-67 lookup miss with the real FidelityFX DLL where the base build had none, and read it as the proxy taking one program's kind 6 with another program's kind 0. Pinned from the DLL's code and run on all 29 payloads: its FSPX reader (0x1a20) and the same loop inline for a container store kinds 0, 1, 6 and 7 in four pairs from one payload, and the pipeline function copies them to +0x08, +0x18, +0x28 (the kind-6 copy, with kind 6's own size at +0x30) and +0x38 of the description. That is the layout the proxy reads, and code and state of one call always come from the same program. A harness that maps the DLL without running it, calls its reader on each payload and builds the description that way resolves every translated program to its own entry through slot 67 on the Vulkan device (26 of 29 on main aa2988cc; the other 3 are refused), on llvmpipe, the integrated GPU and the RX 7900 XTX. So the proxy does not mix programs. What fits the report: with slot 11 answered, the DLL goes on to its next pipeline, which that translation (20 of 29) does not have; only the first call of a slot is announced, so the miss read as the first call's. - d3d12_xs_device.cpp: every failed slot-67 call is logged with its number and the four sizes. - d3d12_fspx_compute_test: dll_slot67 builds the description from a container's own directory the way the DLL does (reader pair order, pointers into the payload, kind 6 copied into a 256-rounded buffer padded with 0xcc); each program resolves to its own translation with its own state. A proxy that read kind 0 from +0x18 or kind 6 with the rounded size fails the test. - docs/fspx.md, d3d12_command_objects.md, d3d12_vulkan.md: how the layout was pinned, and what happens when a later program is not translated. 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.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md
index 82ead294c..02d62345c 100644
--- a/docs/d3d12_command_objects.md
+++ b/docs/d3d12_command_objects.md
@@ -470,6 +470,12 @@ vtable pointer of a public object.
470 the description (always, from this DLL) the proxy passes all four pairs on as one `FSPX` payload, checking each pair 470 the description (always, from this DLL) the proxy passes all four pairs on as one `FSPX` payload, checking each pair
471 before reading it. The Vulkan device then finds the translated module by `fspx_code_sha256` and `fspx_state_sha256` 471 before reading it. The Vulkan device then finds the translated module by `fspx_code_sha256` and `fspx_state_sha256`
472 ([fspx.md](fspx.md), "Build and run-time lookup"), for the programs the build translated. 472 ([fspx.md](fspx.md), "Build and run-time lookup"), for the programs the build translated.
473 - **The layout is pinned from the DLL's code:** its FSPX reader (`0x1a20`), the same loop inline for a container,
474 and the copy into the description. The kind 0 and kind 6 of one call come from the same payload. With the
475 reader run on all 29 programs, every translated program resolves to its own entry ([fspx.md](fspx.md), "How
476 the table was pinned").
477 - **A failed call is logged with its number** (`slot 67 call N failed`). The DLL creates its pipelines one after
478 another, so a miss is not necessarily the first call's.
473- **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC 479- **Slot 62** (call at `0x5825`) takes the measured `(D3D12_COMPUTE_PIPELINE_STATE_DESC*, 0, 0, riid, out)`. The PC
474 runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns 480 runtime refuses the DLL's code (`E_FAIL`): it is not a PC shader. The DLL's pipeline function then returns
475 `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a 481 `0x8000000d` (`0x4b85`), but the dispatch goes on, records the null pipeline and faults (`0x65ff`), which is where a