[PR #1721] test: skip host CreateHeap comparison when the host refuses every heap #1734

Open
opened 2026-11-26 21:18:46 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1721
Author: @kotekompotek
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: work/d3d12-vulkan-device-test-gtx1050


📝 Commits (1)

  • 97707b7 test: skip host CreateHeap comparison when the host refuses every heap

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 runtime/test/d3d12_vulkan_device_test.cpp (+6 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1721 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `work/d3d12-vulkan-device-test-gtx1050` --- ### 📝 Commits (1) - [`97707b7`](https://github.com/ubiquitarianism/leonida/commit/97707b786262de75161654b1ac6f426fc1440c34) test: skip host CreateHeap comparison when the host refuses every heap ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_vulkan_device_test.cpp` (+6 -0) </details> ### 📄 Description Item: TEST-CREATEHEAP-HOST-PROBE — [claimed in the coordination issue](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158530499) `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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1734
No description provided.