Repository navigation
Conversation
…he vkd3d host comparison
The three tests take WARP from EnumWarpAdapter + D3D12CreateDevice as the
reference, with no hostwine::host_is_wine() guard. Under Wine that device is
vkd3d, so all three failed there on vkd3d's differences:
d3d12_noop_copy returned 1 on the host check ("native WARP incorrectly
accepted upload-heap self-copy") before the layer's half ran at all, and
d3d12_typeless_depth and d3d12_clear_formats reported byte differences
against vkd3d's readbacks.
Under Wine each test now runs every layer copy or clear and skips only the
comparison with the host: d3d12_noop_copy checks the layer and passes,
d3d12_typeless_depth and d3d12_clear_formats exit 77 after their layer work
(a layer failure or a validation error still fails them). Windows is
unchanged.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent native Windows check of d9ce6f15. RTX 3080 Ti, NVIDIA 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0. Both stock tests ran their WARP comparisons and passed. AI-assisted. |
Contributor
|
Tested d9ce6f1 merged onto main 1a11c98 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claim: #6414 (comment) (my finding from a Vulkan validation sweep).
What was wrong
d3d12_noop_copy,d3d12_typeless_depthandd3d12_clear_formatstake WARP as their reference (EnumWarpAdapter+D3D12CreateDevice) with nohostwine::host_is_wine()guard. The 34 tests that compare with the host already have one (runtime/test/host_wine.h,copycmp::host_is_wine). Under Wine, that "WARP" is vkd3d on the GPU, so onmain4beffda8all three fail on vkd3d's behaviour, not the layer's:runtime/test/d3d12_noop_copy_test.cpp:117-127: the host check runs first and returns 1 (native WARP incorrectly accepted upload-heap self-copy; vkd3d accepts the self-copy Microsoft's runtime refuses). So under Winecheck(layer, "Leonida Vulkan")is never reached.runtime/test/d3d12_typeless_depth_test.cpp:184-214:R24G8_TYPELESS/R32G8X24_TYPELESS: readback differs from WARP at byte 2 of 120.runtime/test/d3d12_clear_formats_test.cpp:340-411:clears: 152 matched WARP, 99 differ.The Vulkan validation messages these runs print are vkd3d's, not the layer's. With the Linux Khronos layer injected into winevulkan's host instance, they include
VUID-vkCmdCopyImageToBuffer-imageSubresource-09105(a COLOR aspect onD32_SFLOAT_S8_UINT),-imageSubresource-07968,-pRegions-00183,VUID-vkCmdCopyBuffer-pRegions-00117,-dstBuffer-00120,VUID-vkCmdCopyImage-srcImage-09460andSYNC-HAZARD-READ-AFTER-WRITE. With the reference device swapped for the layer's, the same runs print none.Fix
This uses the existing pattern. Under Wine each test still runs every layer copy or clear, so the layer paths stay covered by validation. Only the comparison with the host is skipped, and the test says why (
host D3D12 is Wine's, not Microsoft's: comparisons with the host are skipped):d3d12_noop_copyskips only the host check, then checks the layer and passes.d3d12_typeless_depthruns both families' copies on the layer and exits 77.d3d12_clear_formatsruns all its clears on the layer (251 clears ran on the layer without a WARP reference) and exits 77.In all three, a copy or clear the layer can't run, or a validation error, still fails the test. Nothing changes on Windows:
host_is_wine()is false there and the code paths are the same as before.Tested
RTX 5080, NVIDIA 615.78.08, Linux. Windows build cross-compiled with clang-cl 23.1.3 + xwin, run under Wine 11.20. Khronos Vulkan-ValidationLayers nightly
b321c028(API 1.4.369) injected into the host instance withVK_INSTANCE_LAYERS, synchronization validation on (VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1). The Windows loader under Wine lists no layers, soLEONIDA_VK_VALIDATION=1can't be used there (#4973).d3d12_noop_copyd3d12_typeless_depthd3d12_clear_formatsvkCreateDeviceVUID-...-01387)main4beffda8Leonida Vulkan: 5 legal no-op copy submissions, invalid upload copy rejected; pattern mismatches=0)The full Windows
ctestunder Wine (same layer, sync validation) on this branch gives 235/256 passed. These three are no longer among the failures. The remaining failures are pre-existing under Wine: some are covered by #4362, #4975 and D3D-610 (#6010), and most of the rest fail only because Wine's ownVUID-vkCreateDevice-ppEnabledExtensionNames-01387trips theValidation Errorfail-regex while the injected layer is on. The native Linux build doesn't build these Windows-only tests.git diff --checkis clean. Synthetic resources only, no game files.AI-assisted (Claude Code).
🤖 Generated with Claude Code