Repository navigation
Report DXGI format plane counts on the Vulkan device (D3D-91) - #706
Conversation
|
Tested 562913f on an NVIDIA GeForce RTX 4090 (driver 617.14, Vulkan 1.4.351), Windows 10 Home 22H2 (19045), MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0,
Suggestion: skip (or log) formats the host rejects but the layer knows to be valid DXGI formats newer than the host runtime: 191, and probably 189/190 (sampler feedback) on older runtimes too, though those matched here. Then the test passes on Windows 10 instead of stopping. This check now sits at line 1031, before the footprint and resolve comparisons, so on Windows 10 it would be the first thing to stop AI-assisted (Claude Code); repository tests only, no game files. |
562913f to
660c2e4
Compare
|
Thanks for testing this on Windows 10. Rebased onto On Windows 11 with an RTX 4070 Ti SUPER, driver 610.88, all 195 live queries matched. Replaying your format-191 result and then simulating a host rejecting all three formats also passed all 195. Injecting a wrong plane count for 191 produced one mismatch. Windows CTest passed 30/30 and Linux CTest passed 10/10. A rerun on your Windows 10 machine would confirm the native result. The later footprint and resolve comparisons are tracked in #717 (TEST-97). |
|
Tested 562913f on RTX 5070 (Blackwell), NVIDIA 621.01, Windows 11 Pro (10.0.26200), MSVC 19.51 (VS 2026 Build Tools), LEONIDA_VK_VALIDATION=1: pass. This supports the Windows 10 result above: the format 191 (A4B4G4R4_UNORM) mismatch is host-version-dependent. On Windows 11 the host answers like the layer, so all 195 queries match. No game files. AI-assisted (Claude) |
660c2e4 to
527e41c
Compare
|
Rebased onto Windows CTest passed 32/32 and Linux CTest passed 11/11. The restored submodule pin also fixes the earlier |
quackottu
left a comment
There was a problem hiding this comment.
Tested 527e41c on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 97% tests passed, 1 tests failed out of 31d3d12_vulkan_device_test(changed here): exit=1 validation=0 | 10 validation errors- 30 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (format 28 case 0 byte 2: Vulkan 7f, WARP 80) exactly as onmain67204bf, so not from this PR: NVIDIA rounds a 0.5 UNORM clear to 0x7f, which #521 addressesd3d12_vulkan_device_testreports 10 synchronization-validation WRITE_AFTER_WRITE hazards on back-to-back copies (so ctest'sd3d12_vulkan_devicefails).main8df277f shows the same 10 here, so not from this PR: it's @guimsolutions's finding in #634, which #782 addresses
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
527e41c to
0b312b0
Compare
|
Rebased onto All 195 format queries matched on Windows 11 with RTX 4070 Ti SUPER, driver 610.88. Replaying the Windows 10 response for format 191 also passed. Windows CTest passed all 33 enabled cases, with optional SDL3 GameInput disabled. Linux CTest passed 11/11. The standalone clear test reproduced the one-byte difference on pristine upstream. |
|
Thanks for running synchronization validation on both |
# Conflicts: # docs/d3d12_vulkan.md
0b312b0 to
ddc5677
Compare
|
The implementation and its regression tests landed from I verified all 195 format queries on the merged code with an RTX 4070 Ti SUPER, driver 610.88. The replay of the Windows 10 response for format 191 also passed. Thanks for getting the implementation into main. |
# Conflicts: # docs/d3d12_vulkan.md
ddc5677 to
998916d
Compare
|
Rebased the documentation correction onto Only the Markdown file differs from main. On this base the device test matched all 195 format queries and exercised |
# Conflicts: # docs/d3d12_vulkan.md
998916d to
4b1bb24
Compare
|
The latest upstream merge picked up the earlier documentation revision On the new base, all 195 format queries matched native D3D12, the |
The format plane-count implementation and regression tests from this PR are on
main. The only remaining change against067d3e8is indocs/d3d12_vulkan.md. The feature list describesOPTIONS1as unsupported even though the device implements it. This edit corrects that entry and removes duplicate text from the feature list and A8 paragraph. Original implementation merge · Latest upstream merge of the earlier documentation revisionImplementation already on main
The Vulkan-backed device now returns the DXGI plane count for
D3D12_FEATURE_FORMAT_INFO. The regression test compares the Xbox-ABI proxy's HRESULT and output byte with native D3D12 across named formats, gaps and invalid inputs. For three newer formats that an older host may reject, it still requires the layer to report one plane. It also checks null and oversized buffers. D3D-91 claim · Coordinator assignmentVerification
067d3e8. On that revision, all 195 format queries matched native D3D12 on Windows 11 with an RTX 4070 Ti SUPER, NVIDIA driver 610.88 and Vulkan synchronization validation enabled.762893f.067d3e8, all 34 enabled Windows CTest cases and all 11 Linux CTest cases passed. The standalone Windows clear test reports three existing Vulkan/WARP differences on that base. Optional SDL3 GameInput was disabled.AI-assisted with OpenAI Codex. All test inputs were synthetic. The tracked-file scan found no game data.