Repository navigation
Conversation
…ST_WITHIN_BIT_LAYOUT as the host does SHADER_MODEL asked with a value above the highest model the runtime defines (0x6a..0x100) was clamped to 6.0; the RTX 5070 Ti and WARP both answer it with E_INVALIDARG. FORMAT_SUPPORT now sets CAST_WITHIN_BIT_LAYOUT on every format of a TYPELESS family (depth formats and plane views included), as both hosts do, and still not on the family-less ones. d3d12_feature_support_parity_test compares the layer with the host (or WARP with PROBE_WARP=1) per row: 14 shader-model requests, the cast bit on every format both answer, and tiled MSAA quality of D32/D16 as controls. Before: 100 of 116 rows differ on both; after: 0. AI-assisted: yes
WinHttpGetProxySettingsEx is absent from Windows 10's winhttp.dll, so the host-presence assertion panicked there. The HLE supplies it itself; skip it only when the host lacks it, keeping the check for every other export. Fixes ProjectLeonida#118
|
The behavior remains relevant and is not in current main: shader-model requests above 6.0 are still clamped, and FORMAT_SUPPORT only has the XR_BIAS cast-bit special case. Your host/WARP report (0 differences across 116 rows) is useful evidence.\n\nNot merge-ready: this is still a draft, conflicts with main, all CI checks are cancelled, and I found no current claim in coordination issue #2570. The current docs/d3d12_vulkan.md §4.1 says requests above 6.0 are clamped, which conflicts with the measured E_INVALIDARG for 0x6a..0x100; please update that contract. Open PRs #732 and #1188 also touch runtime/shims/d3d12_vulkan_device.cpp, so rebase and preserve their changes. Then rerun the Windows build/CTest and the parity test against the host and WARP on the current diff. No merge until all criteria are satisfied. |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Stacked on
#9719(its commit721526af3is the first one here); review the second commit,170f70ecd. If#9719merges first this rebases to one commit.Measured against the host runtime on an RTX 5070 Ti (NVIDIA 621.14) and on WARP, Windows 11, MSVC 14.44. Host and WARP agree; the layer differed:
CheckFeatureSupport(SHADER_MODEL)with HighestShaderModel 0x6a..0x100FORMAT_SUPPORTD3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUTFix: shader models above 6.9 are refused with E_INVALIDARG; a new
cast_within_bit_layout()sets the bit for formats in a TYPELESS family.Test. New
d3d12_feature_support_parity_test(116 rows) compares the layer with the host (PROBE_WARP=1for WARP; exits 77 without a Vulkan or host device).#9719): 100 of 116 differ, on host and on WARP (10 shader-model rows, 90 cast rows).^d3d12_ctests: 73 pass, 4 skip, 2 fail;d3d12_vulkan_deviceandd3d12_depth_resolvefail the same way on main on this machine (#7125,#7905).Looked at, not changed: R8G8_B8G8 / G8R8_G8B8 (host supports 1D/2D/3D/cube with gather; Vulkan's 4:2:2 formats need Y′CbCr conversion, which has no 3D, cube or gather;
#4533lists it); tiled MSAA quality on stencil-bearing depth formats (#4533); GPU start handle of a non-shader-visible heap (NVIDIA and WARP answer differently, so nothing to match).No game data used. Claim: https://github.com/ProjectLeonida/Leonida/issues/9065#issuecomment-7115478274
AI-assisted: yes (Claude Code; I reviewed and re-ran the test on host and WARP).