diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-22 17:23:49 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-22 17:23:49 -0500 |
| commit | bcf3cd47f5de0eaab200c5daa4a40977a18e740a (patch) | |
| tree | 7ed3725dc89fe461e3c42a40bcd90efeb0449dfd /docs/d3d12_command_objects.md | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
FidelityFX pipelines: slot 67 passes kind 0 on, and the compute pipeline answers console slot 11 (RT-99)
After slot 67 (or 62) creates a pipeline, amd_fidelityfx_upscaler_xbox.dll calls the pipeline's slot 11, past the
public ID3D12PipelineState, and the slot-67 mapping dropped the dispatch state, so two programs with the same code and
different kind 0 could not be told apart there.
- d3d12_xs_device.cpp: with kind 0 present (the DLL always passes it), slot 67 builds one FSPX payload from the four
pointer and size pairs (leonida::fspx_payload_from_parts) and passes it as CS, so the device uses the code and
state keys. Every pair is checked before it is read; an inconsistent one refuses the call. Without kind 0 the
kind-6 bytes go on alone, as before.
- d3d12_vulkan_device.cpp: XboxPipelineStateStubs puts console slots 9, 10 and 11 into the pipeline's vtable ahead
of Object's virtual destructor (one slot under MSVC, two under GCC), so they are slots 9 to 11 on both. Slot 11
returns a blob holding 0; 9 and 10 return E_NOTIMPL.
- Why 0, measured on 1.0.2.1: the DLL zeroes the value before the call, keeps it at 0 when slot 11 fails or returns
no object, and with 0 skips the scratch buffer and list slot 141 at dispatch. None of the 29 programs sets
COMPUTE_PGM_RSRC2.SCRATCH_EN or has a scratch instruction, and kind-0 words 0 to 2 are the same in all 29, so no
per-program scratch size is there.
- Tests: shader_library_test (payload building, refused pairs, the #1911 review case through slot-67 parts) and
d3d12_fspx_compute_test (slot 67 with four pairs picks the right one of two programs sharing their code, bad pairs
refused, slot 11 and its object's slot 3 and 4, reference counts unchanged).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions