Repository navigation
Conversation
Defer reserved-buffer tile updates and copies alongside held command batches and signals. Keep sparse backing alive, resolve source mappings at submission order, and carry waits past no-op or rejected binds. Compare all tile readbacks with native D3D12 for CPU and COPY queue signals, and test wait forwarding with a fake incomplete Vulkan producer.
…'s adapter The host device came from D3D12CreateDevice(nullptr), D3D12's default adapter, which on a PC whose first adapter is an integrated GPU is not the GPU the layer runs on. With an Intel iGPU first and the layer on an RX 9070 XT the check printed "the host adapter is UMA; not compared" and passed without comparing. Take the host from hostadapter::reference, as the fence comparisons do, and name it in the result line.
|
Independent native Windows check of 760442fe on the published #4577 stack. RTX 3080 Ti, NVIDIA 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0. With no host-adapter override, the native D3D12 device and Vulkan-backed proxy selected the same RTX 3080 Ti and returned the same adapter identifier (LUID). For DEFAULT, UPLOAD, and READBACK with node mask 0, all five heap-property fields matched native D3D12. The layer also passed all six expected-value checks across node masks 0 and 1. The focused AI-assisted. |
devnull34
left a comment
There was a problem hiding this comment.
Verified on AMD Radeon RX 7900 GRE (Windows 11):
- Built
d3d12_fence_timing_testcleanly with MSVC. d3d12_fence_timing_test.exepassed:GetCustomHeapProperties: DEFAULT, UPLOAD, READBACK, CUSTOM, unknown type, and node mask 2 correctly matched the host runtime on AMD Radeon RX 7900 GRE rather than falling back to default/UMA bypass.- Multi-fence waits, CPU/queue rewinds, and clock calibration all verified.
- CTest target
162: d3d12_fence_timingpassed 100% (2.02s). - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Tested 760442f on the mirror image of the PR's machine: here the discrete GPU is DXGI adapter 0 (NVIDIA GeForce RTX 5070, 617.42) and the iGPU is second (AMD Radeon Graphics, the Ryzen 5 7600's RDNA2 iGPU, 32.0.21042.62). Windows 11 26200, MSVC 14.51 (VS 2026), RelWithDebInfo,
So with the layer on the iGPU, the old code compared the layer's answers against the other GPU and reported a match. The new code picks the same adapter, as the A side observation, not a problem with this PR: since the old run "matched" a discrete host with the layer on a UMA iGPU, the layer's AI-assisted: yes |
|
AI-assisted verification of I ran
Synthetic tests only. |
|
Tested
Build: MSVC (VS 2022 Build Tools) RelWithDebInfo via |
|
Tested
Synthetic test only. AI-assisted testing. |
…apter # Conflicts: # runtime/test/d3d12_fence_timing_test.cpp
|
Merged Re-tested on Windows 11 Pro 26200 with an RX 9070 XT (AMD 26.11.2) and Intel Graphics (Core Ultra 5 225, 101.8860),
AI-assisted. |
|
Tested Windows 11, MSVC 14.44.35207 (VS Build Tools 2022,
* the one failure is
Same-main baseline: the six pre-existing tests on plain Commands: |
Claimed in the coordination issue as: D3D-667 (#6750 (comment))
Depends on: #4577 (this branch is its head 2ae764b plus one commit, 760442f, which is the whole change here). Overlaps #6569 and #4756 in the same function.
What and why
check_custom_heap_propertiescreated its host device withD3D12CreateDevice(nullptr, ...), D3D12's default adapter. On a PC whose first adapter is an integrated GPU, that is not the GPU the layer runs on. Here (Intel iGPU first, layer on an RX 9070 XT) the check printed "the host adapter is UMA; not compared" and passed without comparing anything. The host now comes fromhostadapter::reference, as #4577's fence comparisons get theirs, and the result line names it.Tested
Windows 11 Pro 26200, AMD Radeon RX 9070 XT (AMD 26.11.2) plus an Intel Graphics iGPU (driver 101.8860) that is DXGI adapter 0, MSVC 19.50 RelWithDebInfo, default device selection:
AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (n/a, no translator rule)