upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authortf <t@t>2026-11-23 18:30:39 +0100
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 21:10:16 +0000
commit6946344eb040501887360ff12a2a5acf48213f32 (patch)
tree55929310cbf39f7cb0ccd6fd9c3986edeb6d206a /runtime/src/xma2_decoder.cpp
parentc915e1da45e17d46c90c32be9809e4f043a77fd3 (diff)
d3d12_xs: derive pipeline states for device slot 55
Slot 55 is the console's CreateDerivedPipelineState(pBasePSO, n, pRecords, riid, ppv): n = 1..4 records of 0x14c bytes (a u32 tag, payload at +4) that patch the base PSO's state before a new PSO is created. - Slot 86 keeps a deep copy of the stream it creates on the returned PSO (ID3D12Object private data, released with the PSO): shader bytecode, stream-output and input-layout arrays and strings, cached blobs, and AddRef'd root signatures. - Slot 55 patches a copy of the base stream and creates the PSO through the slot 86 path, so a derived PSO can itself be a base. - Tags: 0 = DEPTH_STENCIL (or the DEPTH_STENCIL1 prefix), 1 = RASTERIZER, 2 = BLEND, 3 = sample mask (TomBox layout; the 1.0.2.1 title does not write it), 5 = StencilReadMask and StencilWriteMask bytes overlaid on the base's DEPTH_STENCIL, applied in record order. Other tags are refused. - A base not created through slots 86/55, a base without the matching subobject, malformed records, and n outside 1..4 are refused with E_FAIL or E_INVALIDARG and a null output, each logged once. - Slot 55 shadows PC CreateReservedResource1 (PC slot 55) on the proxy, as slot 78 shadows PC CreateReservedResource2 in #7125; the vulkan device test calls the PC method on the real device behind the proxy. Tests: pso_stream_test (synthetic streams: console subobject offsets, deep copy, patching, tag 5 overlay and record order, refusals) and device_proxy_test over WARP (refusals, graphics base via slot 86, n = 3 and n = 4 derivations, a derivation from a derived PSO). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8 (cherry picked from commit d80c40845d7eca9163f937de943b65482b7f0657)
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions