diff options
| author | Johan John Joji <83926918+TripleJ160@users.noreply.github.com> | 2026-11-23 11:37:29 -0500 |
|---|---|---|
| committer | Johan John Joji <83926918+TripleJ160@users.noreply.github.com> | 2026-11-23 11:37:29 -0500 |
| commit | b4d1ba179436a73989b7c33dfcdd1eda473575f4 (patch) | |
| tree | 75c21b36841291e9673791f071bb68e75c1fda69 /runtime/test/device_proxy_test.cpp | |
| parent | d7451f9d9b0ef8881219979a4a9c538e4939b134 (diff) | |
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.cpp | 1 |
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"); |