test: skip host CreateHeap comparison when the host refuses every heap #1721

Open
github-bot wants to merge 1 commit from github-bot/gh-1721 into main AGit
Owner

@⁠kotekompotek on GitHub · 2026-11-25 09:35 UTC · original
kotekompotek:work/d3d12-vulkan-device-test-gtx1050 → main · +6 −0 · 1 files · 1 commits · open

Item: TEST-CREATEHEAP-HOST-PROBE — claimed in the coordination issue

d3d12_vulkan_device_test compares the layer's answers with a host D3D12 device. On a GTX 1050 (driver 582.28, Windows 11 24H2) that host runtime answers E_INVALIDARG for every CreateHeap, including the canonical 64 KiB default heap, so:

  • compare_heap_neighbours read each valid-neighbour case as a mismatch (line 7359: heap_mismatches <= 0), and
  • compare_placed_reserved collapsed every placed case to the host's E_UNEXPECTED (line 7371: placed_mismatches <= 0).

A native probe on the same box shows the contrast: the GTX 1050 runtime refuses even the plain default/upload heaps, while Intel UHD 630 and WARP accept them (all three refuse the genuinely-invalid cases like zero-size). So the layer's S_OK answers are right; the host is just not comparable.

Both functions now probe the canonical 64 KiB heap once after create_host_device and return the existing "no host D3D12 device to compare with, skipped" path when the host cannot create one. On a host that can, nothing changes — same comparability-gate shape as windows10_refuses/host_ray_tracing.

AI-assisted.

Tested: d3d12_vulkan_device_test.exe (Debug, MSVC 19.43) on NVIDIA GeForce GTX 1050, driver 582.28, Windows 11 — full run passes; both sections report the skip, and every other host-comparison section (FORMAT_INFO 195 queries, CheckFeatureSupport 32 queries, FORMAT_SUPPORT 97 formats, placed castable formats, proxy semantics) still compares and matches.

**@⁠kotekompotek** on GitHub · 2026-11-25 09:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1721) `kotekompotek:work/d3d12-vulkan-device-test-gtx1050` → `main` · +6 −0 · 1 files · 1 commits · open Item: TEST-CREATEHEAP-HOST-PROBE — [claimed in the coordination issue](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) `d3d12_vulkan_device_test` compares the layer's answers with a host D3D12 device. On a GTX 1050 (driver 582.28, Windows 11 24H2) that host runtime answers `E_INVALIDARG` for **every** `CreateHeap`, including the canonical 64 KiB default heap, so: - `compare_heap_neighbours` read each valid-neighbour case as a mismatch (`line 7359: heap_mismatches <= 0`), and - `compare_placed_reserved` collapsed every placed case to the host's `E_UNEXPECTED` (`line 7371: placed_mismatches <= 0`). A native probe on the same box shows the contrast: the GTX 1050 runtime refuses even the plain default/upload heaps, while Intel UHD 630 and WARP accept them (all three refuse the genuinely-invalid cases like zero-size). So the layer's `S_OK` answers are right; the host is just not comparable. Both functions now probe the canonical 64 KiB heap once after `create_host_device` and return the existing "no host D3D12 device to compare with, skipped" path when the host cannot create one. On a host that can, nothing changes — same comparability-gate shape as `windows10_refuses`/`host_ray_tracing`. AI-assisted. Tested: `d3d12_vulkan_device_test.exe` (Debug, MSVC 19.43) on NVIDIA GeForce GTX 1050, driver 582.28, Windows 11 — full run passes; both sections report the skip, and every other host-comparison section (FORMAT_INFO 195 queries, CheckFeatureSupport 32 queries, FORMAT_SUPPORT 97 formats, placed castable formats, proxy semantics) still compares and matches.
A GTX 1050's D3D12 runtime (driver 582.28, Windows 11 24H2) answers
E_INVALIDARG even for the canonical 64 KiB default heap, so
compare_heap_neighbours and compare_placed_reserved have nothing to
compare the layer against: every host case collapses to E_INVALIDARG /
E_UNEXPECTED and reads as a layer mismatch. Probe the canonical heap
first and skip the host comparison when the host cannot create it.

AI-assisted.

Tested: d3d12_vulkan_device_test on NVIDIA GeForce GTX 1050 (driver
582.28), Windows 11 - both sections now report 'no host D3D12 device
to compare with, skipped', all other sections still match the host.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:02:25 +00:00
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-25 11:46 UTC · original

Tested 97707b786 merged onto main bcaa13dad (clean), native Windows 11 Pro 26H2 (build 26300), NVIDIA GeForce RTX 4060, driver 621.14, VS 2022 RelWithDebInfo + Ninja (D3D12Core.dll 10.0.26100.9818).

  • A host that can create heaps: d3d12_vulkan_device passes on main and with this PR, so the new probe keeps the comparison on here. Full ctest -j 6: 409 of 409 passed, same as main.

AI-assisted testing (non-developer tester).

**@⁠potatoe0100** on GitHub · 2026-11-25 11:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1721#issuecomment-7161476224) Tested `97707b786` merged onto `main` `bcaa13dad` (clean), native Windows 11 Pro 26H2 (build 26300), NVIDIA GeForce RTX 4060, driver 621.14, VS 2022 RelWithDebInfo + Ninja (`D3D12Core.dll` 10.0.26100.9818). - A host that can create heaps: `d3d12_vulkan_device` passes on `main` and with this PR, so the new probe keeps the comparison on here. Full `ctest -j 6`: 409 of 409 passed, same as `main`. AI-assisted testing (non-developer tester).
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 18:08 UTC · original

Reviewed 97707b78 on arm64 Linux; d3d12_vulkan_device_test needs Windows/MSVC and a live d3d12 host, so it
could not run here - I ran the repo gates plus the probe below instead. Extracted your two sections and their
helpers verbatim from the tree and drove them with mock devices: a healthy host matches everything on both trees
(0 mismatches), and the GTX 1050 of your commit makes main report 9 + 80 false mismatches (two EXPECT failures)
while your guards skip both sections as intended; compare_heap_descs tolerates that host already (0/20) and is
untouched. No findings; two notes: the skip text says "no host D3D12 device" although a host exists, and the
placed_reserved skip is section-wide (the committed/null-heap/reserved cases stop being compared on such a host).
AI-assisted review.
Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 18:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1721#issuecomment-7170494090) Reviewed 97707b78 on arm64 Linux; d3d12_vulkan_device_test needs Windows/MSVC and a live d3d12 host, so it could not run here - I ran the repo gates plus the probe below instead. Extracted your two sections and their helpers verbatim from the tree and drove them with mock devices: a healthy host matches everything on both trees (0 mismatches), and the GTX 1050 of your commit makes main report 9 + 80 false mismatches (two EXPECT failures) while your guards skip both sections as intended; compare_heap_descs tolerates that host already (0/20) and is untouched. No findings; two notes: the skip text says "no host D3D12 device" although a host exists, and the placed_reserved skip is section-wide (the committed/null-heap/reserved cases stop being compared on such a host). AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1721/head:github-bot/gh-1721'
git switch 'github-bot/gh-1721'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1721'
git switch 'github-bot/gh-1721'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1721'
git switch 'github-bot/gh-1721'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1721'
git switch 'main'
git merge --squash 'github-bot/gh-1721'
git switch 'main'
git merge --ff-only 'github-bot/gh-1721'
git switch 'main'
git merge 'github-bot/gh-1721'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.