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:
authortedin7 <110300616+tedin7@users.noreply.github.com>2026-11-23 17:42:40 +0100
committerGitHub <noreply@github.com>2026-11-23 17:42:40 +0100
commit77878e31bc28ec970b9f3b30d2eceb3b1baacf80 (patch)
tree372aeba1bb6307bfc6c53921ed58eb0a0d93576d /runtime/test/device_proxy_test.cpp
parent7853964a5c71c1c55dd79677ffaba0f459e7637e (diff)
parentb4d1ba179436a73989b7c33dfcdd1eda473575f4 (diff)
Merge pull request #2 from TripleJ160/codex/slot25-pc-validation
d3d12: preserve PC descriptor validation in slot 25
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");