diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:15:24 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:15:24 -0500 |
| commit | f61946cfe1146dff3385074ffa405c89f6ca39c5 (patch) | |
| tree | 4cd53b2fa60c646a61444d58279e27d49c25da60 /runtime/test/device_proxy_test.cpp | |
| parent | 8ba7c8d552421f714deb3579b9f4cbf8724bfd23 (diff) | |
| parent | 2123a02506f16cab63c676dbb029edd0bbe859a2 (diff) | |
Merge pull request #1795 from AimLogin
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
| -rw-r--r-- | runtime/test/device_proxy_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp index d843b518c..70cae9a89 100644 --- a/runtime/test/device_proxy_test.cpp +++ b/runtime/test/device_proxy_test.cpp | |||
| @@ -151,7 +151,7 @@ int main() { | |||
| 151 | unsigned slots = rt::d3d12_xs::device_proxy_slot_count(device.Get()); | 151 | unsigned slots = rt::d3d12_xs::device_proxy_slot_count(device.Get()); |
| 152 | std::printf("proxy forwards %u PC vtable slots (ID3D12Device..Device14 max is 83)\n", slots); | 152 | std::printf("proxy forwards %u PC vtable slots (ID3D12Device..Device14 max is 83)\n", slots); |
| 153 | check(slots >= 44, "proxy forwards at least the base ID3D12Device vtable"); | 153 | check(slots >= 44, "proxy forwards at least the base ID3D12Device vtable"); |
| 154 | check(!rt::d3d12_xs::device_slot_overridden(9), "device slot 9 is forwarded (PC CreateCommandAllocator)"); | 154 | check(rt::d3d12_xs::device_slot_overridden(9), "device slot 9 is CreateCommandAllocator (allocator proxies)"); |
| 155 | check(!rt::d3d12_xs::device_slot_overridden(10), "device slot 10 is forwarded (PC CreateGraphicsPipelineState)"); | 155 | check(!rt::d3d12_xs::device_slot_overridden(10), "device slot 10 is forwarded (PC CreateGraphicsPipelineState)"); |
| 156 | check(rt::d3d12_xs::device_slot_overridden(14), "device slot 14 is the descriptor-heap override"); | 156 | check(rt::d3d12_xs::device_slot_overridden(14), "device slot 14 is the descriptor-heap override"); |
| 157 | check(rt::d3d12_xs::device_slot_overridden(62), "device slot 62 is the compute-PSO override"); | 157 | check(rt::d3d12_xs::device_slot_overridden(62), "device slot 62 is the compute-PSO override"); |
| @@ -278,6 +278,8 @@ int main() { | |||
| 278 | ComPtr<ID3D12CommandAllocator> allocator; | 278 | ComPtr<ID3D12CommandAllocator> allocator; |
| 279 | hr = device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(allocator.GetAddressOf())); | 279 | hr = device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(allocator.GetAddressOf())); |
| 280 | check(SUCCEEDED(hr) && allocator != nullptr, "device slot 9 forwards CreateCommandAllocator"); | 280 | check(SUCCEEDED(hr) && allocator != nullptr, "device slot 9 forwards CreateCommandAllocator"); |
| 281 | // A PC runtime allocator is not wrapped: the PC runtime's lists could not resolve an allocator proxy. | ||
| 282 | check(!rt::d3d12_xs::is_allocator_proxy(allocator.Get()), "slot 9 hands out the PC allocator unwrapped"); | ||
| 281 | check(rt::d3d12_xs::device_slot_hits(9) == 1, "slot 9 hit counter is 1"); | 283 | check(rt::d3d12_xs::device_slot_hits(9) == 1, "slot 9 hit counter is 1"); |
| 282 | 284 | ||
| 283 | // Slot 76: buffer resource with the measured Xbox layout word 0x101; PC committed resources take ROW_MAJOR. | 285 | // Slot 76: buffer resource with the measured Xbox layout word 0x101; PC committed resources take ROW_MAJOR. |