From b4d1ba179436a73989b7c33dfcdd1eda473575f4 Mon Sep 17 00:00:00 2001 From: Johan John Joji <83926918+TripleJ160@users.noreply.github.com> Date: Mon, 23 Nov 2026 11:37:29 -0500 Subject: d3d12: preserve PC descriptor validation in slot 25 --- runtime/test/device_proxy_test.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/test/device_proxy_test.cpp') 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) { // the PC device's for the cleaned description (the raw 0x101 layout makes WARP answer UINT64_MAX). const D3D12_RESOURCE_DESC clean = rt::d3d12_xs::pc_resource_desc(desc); const D3D12_RESOURCE_ALLOCATION_INFO want = real->GetResourceAllocationInfo(0, 1, &clean); + check(want.SizeInBytes != UINT64_MAX, "WARP accepts the normalized slot-25 buffer description"); check(returned == &got, "slot 25 returns the caller's buffer in RAX"); check(got.SizeInBytes == want.SizeInBytes && got.Alignment == want.Alignment, "slot 25 (C ABI) writes the PC device's GetResourceAllocationInfo into the caller's buffer"); -- cgit v1.2.3