upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/device_proxy_test.cpp
diff options
context:
space:
mode:
authorSWAYAM <swa122yam.com>2026-11-22 19:23:10 +0530
committerSWAYAM <swa122yam.com>2026-11-22 19:34:10 +0530
commit400d976f4337a8f558837e26fbe05544aec19dd6 (patch)
treebdce509bc82d9e4f3ec18c844985ccc8fa565a7a /runtime/test/device_proxy_test.cpp
parentaf236e196bdcbaf90c7cba9ce0b3668521d0afc8 (diff)
d3d12_xs: name slot 67 descriptor fields as FSPX kinds 0, 1, 6, 7
Name all four pointer and size pairs in the XboxNativeComputePipelineStateDesc struct as kinds 0, 1, 6, 7 per docs/fspx.md and name the slot DeserializeComputePipelineStateX in slot_name, matching the DLL's messages. This prepares the description struct for the runtime FSPX resolver follow-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
-rw-r--r--runtime/test/device_proxy_test.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp
index 35e4b67a3..d843b518c 100644
--- a/runtime/test/device_proxy_test.cpp
+++ b/runtime/test/device_proxy_test.cpp
@@ -344,19 +344,21 @@ int main() {
344 check(rt::d3d12_xs::device_slot_first_call_seen(62), "slot 62 first-call flag is set"); 344 check(rt::d3d12_xs::device_slot_first_call_seen(62), "slot 62 first-call flag is set");
345 345
346 // Slot 67: Xbox native compute pipeline creation. Maps the console descriptor (+0x00 root signature, 346 // Slot 67: Xbox native compute pipeline creation. Maps the console descriptor (+0x00 root signature,
347 // +0x28 code blob, +0x30 code size) to D3D12_COMPUTE_PIPELINE_STATE_DESC and calls CreateComputePipelineState. 347 // +0x28 kind 6 code blob, +0x30 code size) to D3D12_COMPUTE_PIPELINE_STATE_DESC and calls CreateComputePipelineState.
348 struct XboxNativeComputeDesc { 348 struct XboxNativeComputeDesc {
349 ID3D12RootSignature* root_signature; 349 ID3D12RootSignature* root_signature;
350 const void* ptr1; 350 const void* kind0;
351 std::uint64_t size1; 351 std::uint64_t kind0_size;
352 const void* ptr2; 352 const void* kind1;
353 std::uint64_t size2; 353 std::uint64_t kind1_size;
354 const void* code; 354 const void* kind6;
355 std::uint64_t code_size; 355 std::uint64_t kind6_size;
356 const void* kind7;
357 std::uint64_t kind7_size;
356 } xbox_desc{}; 358 } xbox_desc{};
357 xbox_desc.root_signature = root_signature.Get(); 359 xbox_desc.root_signature = root_signature.Get();
358 xbox_desc.code = bytecode->GetBufferPointer(); 360 xbox_desc.kind6 = bytecode->GetBufferPointer();
359 xbox_desc.code_size = bytecode->GetBufferSize(); 361 xbox_desc.kind6_size = bytecode->GetBufferSize();
360 362
361 using XboxCreateNativeComputePsoFn = HRESULT(WINAPI*)(void*, const void*, const IID*, void**); 363 using XboxCreateNativeComputePsoFn = HRESULT(WINAPI*)(void*, const void*, const IID*, void**);
362 auto create_native_pso = reinterpret_cast<XboxCreateNativeComputePsoFn>(proxy_vtbl[67]); 364 auto create_native_pso = reinterpret_cast<XboxCreateNativeComputePsoFn>(proxy_vtbl[67]);