Repository navigation
Conversation
…kan queues than the test needs The layer gives each live D3D12 queue its own VkQueue and answers E_OUTOFMEMORY when none is left (Intel UHD 770 has too few). The test threw on that and exited 2. Now only E_OUTOFMEMORY on the COPY or COMPUTE queue is treated as a missing capability: the test still checks the byte-exact reserved-buffer mapping on the DIRECT queue alone, then exits 77 like d3d12_queue_wait.
|
Tested accfdb5 on Intel UHD 770 (driver 32.0.101.7088), Windows 11, MSVC 19.44, Vulkan SDK 1.4.357, |
|
Positive control on a GPU that does have three independent queue families — the new skip path must not make this test silently disappear. Head Environment (AI-assisted, OpenCode): Windows 11 Pro 26300, MSVC 19.44.35230, CMake 4.4.4 + Ninja, RelWithDebInfo. GPU: NVIDIA GeForce GTX 1060 6GB, driver 582.78, subgroup sizes 32..32, no Resizable BAR. No game data, keys or decryption. Result: All three mapping cases used distinct direct/copy/compute queues and passed with zero mismatched or nonzero-unmapped tiles.
So on a 3-family GPU the new early-skip logic leaves behaviour unchanged. |
|
Tested To reach the new path on NVIDIA, I made a temporary local change to
AI-assisted (Claude Code). |
scp682
left a comment
There was a problem hiding this comment.
I tested d3d12_sparse_queue_family before and after this change (de671352 → accfdb52) on Windows 11 24H2 (26100.3476), MSVC 19.44.35227, RelWithDebInfo. Both builds used the same runtime and toolchain. I explicitly selected each Vulkan device.
| GPU / driver | Base de671352 |
PR accfdb52 |
|---|---|---|
Intel Graphics (Core Ultra 9 275HX, 8086:7d67) / 101.8132 |
Failed, exit 2 (CreateCommandQueue returned 0x8007000e) |
CTest Skipped, executable exit 77. LAYER_MAP_DIRECT_ONLY passed with mapped_mismatch=0/65536 and unmapped_nonzero=0/65536. |
| NVIDIA RTX 5070 Ti Laptop / 596.36 | Passed, exit 0 | Passed, exit 0. All three DIRECT/COPY/COMPUTE mapping cases had zero mismatches and zero nonzero unmapped bytes in both builds. |
The API dump contract test skipped in all four runs because the required Vulkan SDK layers were unavailable. I used the repository's synthetic fixtures. AI-assisted test execution and reporting.
What broke: on the Intel UHD 770,
d3d12_sparse_queue_familyfailed (exit 2) whiled3d12_queue_waitskipped, on the same condition. The layer gives each live D3D12 queue its own VkQueue and returnsE_OUTOFMEMORY("no independent Vulkan queue available") when none is left. The test treated that as an error inCreateCommandQueuefor COPY/COMPUTE. Repro:set VK_LOADER_DRIVERS_DISABLE=*nv*,set LEONIDA_VK_DEVICE=Intel,ctest -R d3d12_sparse_queue_family.This is a missing hardware capability, not a runtime bug: the sparse path itself works on one queue (
UpdateTileMappings+ copy + readback on the DIRECT queue is byte exact on the Intel). Only the cross-queue cases need three queues.Fix: only
E_OUTOFMEMORYfrom creating the COPY or COMPUTE queue counts as "capability absent". The test then still runs the reserved-buffer mapping on the DIRECT queue alone (LAYER_MAP_DIRECT_ONLY), and exits 77 (SKIP_RETURN_CODEis already 77 inruntime/CMakeLists.txt). Any other error still fails. The 3-queue path is unchanged.Tested (Windows, MSVC, RelWithDebInfo, built at 98fa503):
Failed; after,Skipped, withRESULT LAYER_MAP_DIRECT_ONLY PASS mapped_mismatch=0/65536 unmapped_nonzero=0/65536.Passed, all three LAYER_MAP cases PASS,LAYER_FINAL PASS.d3d12_sparse_queue_family_contractskips on both here (no api_dump layer), unchanged.Negative control: upstream/main test file on Intel = Failed; with this change = Skipped.
AI-assisted.