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:
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
-rw-r--r--runtime/test/device_proxy_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp
index 7e27c6ee8..af0afde22 100644
--- a/runtime/test/device_proxy_test.cpp
+++ b/runtime/test/device_proxy_test.cpp
@@ -217,6 +217,7 @@ int main(int argc, char** argv) {
217 // the PC device's for the cleaned description (the raw 0x101 layout makes WARP answer UINT64_MAX). 217 // the PC device's for the cleaned description (the raw 0x101 layout makes WARP answer UINT64_MAX).
218 const D3D12_RESOURCE_DESC clean = rt::d3d12_xs::pc_resource_desc(desc); 218 const D3D12_RESOURCE_DESC clean = rt::d3d12_xs::pc_resource_desc(desc);
219 const D3D12_RESOURCE_ALLOCATION_INFO want = real->GetResourceAllocationInfo(0, 1, &clean); 219 const D3D12_RESOURCE_ALLOCATION_INFO want = real->GetResourceAllocationInfo(0, 1, &clean);
220 check(want.SizeInBytes != UINT64_MAX, "WARP accepts the normalized slot-25 buffer description");
220 check(returned == &got, "slot 25 returns the caller's buffer in RAX"); 221 check(returned == &got, "slot 25 returns the caller's buffer in RAX");
221 check(got.SizeInBytes == want.SizeInBytes && got.Alignment == want.Alignment, 222 check(got.SizeInBytes == want.SizeInBytes && got.Alignment == want.Alignment,
222 "slot 25 (C ABI) writes the PC device's GetResourceAllocationInfo into the caller's buffer"); 223 "slot 25 (C ABI) writes the PC device's GetResourceAllocationInfo into the caller's buffer");