Repository navigation
Tests: skip host comparisons under Wine and Proton in six more tests - #3527
Closed
kmorales13 wants to merge 1 commit into
Closed
kmorales13 wants to merge 1 commit into
kmorales13 wants to merge 1 commit into
Conversation
Under Wine the host D3D12 is vkd3d and under Proton vkd3d-proton, and Proton's EnumWarpAdapter returns the hardware adapter, so the "WARP" and host references these tests compare with are not Microsoft's runtime. Six tests failed on main for that reason only: d3d12_r9g9b9e5_uav, d3d12_method_variants and d3d12_sampler2 under Proton (the last two crash inside vkd3d-proton on edge-case arguments), d3d12_fence_timing and d3d12_subresource_copy under both, d3d12_private_data under Wine. They now use hostwine::host_is_wine(), as the other host-comparison tests do, and skip only the host comparison; their own checks of the layer still run. docs/testing.md says which tests still compare.
This was referenced Nov 22, 2026
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.
New TEST item, claimed in #3381.
What and why
Several runtime tests compare the layer with a host D3D12 device: Microsoft's runtime, or WARP through
EnumWarpAdapter. Under Wine the host D3D12 is Wine's vkd3d. Under Proton it's vkd3d-proton, and Proton's DXGI answersEnumWarpAdapterwith the hardware adapter (it logsWARP not supported, returning first hardware adapter). So the "WARP" reference is vkd3d-proton running on the GPU. Six tests fail onmain(f847748c) for that reason only:d3d12_r9g9b9e5_uav0x840a0300) where WARP rounds half-up as the layer does (0x840e0501,docs/d3d12_vulkan.md)d3d12_method_variantsd3d12core.dllon the edge-case argumentsd3d12_sampler2d3d12core.dlld3d12_fence_timingGetCustomHeapPropertiesanswers differ from vkd3d'sd3d12_subresource_copyWriteToSubresource/Mapedge cases answered differently by vkd3dd3d12_private_dataSetName(nullptr)answered differently by Wine's vkd3dEach now checks
hostwine::host_is_wine()(runtime/test/host_wine.h), as the other host-comparison tests already do. Under Wine and Proton each test skips only its host comparison and prints why; its own checks of the layer still run. On Windowshost_is_wine()is false, so nothing changes there.docs/testing.md's paragraph on host comparisons under Wine says which tests still compare.Note: under plain Wine,
d3d12_method_variants,d3d12_sampler2and the WARP part ofd3d12_r9g9b9e5_uavpassed before, because Wine creates no host or WARP device there. They now skip it explicitly, like the other tests.Related pull requests
d3d12_compute's CachedPSO host comparison, the seventh test that fails under Wine and Proton for this reason. It came first, so this PR leavesd3d12_computeto it.d3d12_method_variantsthat the guard goes on (without a Wine check); D3D12: CreateHeap1 on the Vulkan device (answers as CreateHeap, refuses a protected session) #1846 (d3d12_method_variants), Runtime: private data (GetPrivateData, SetPrivateData, SetPrivateDataInterface, SetName) answers as the host does #2533 (d3d12_private_data), Runtime: hold a CPU fence signal until the queue signals before it have completed (VUID 03259) #1161 (d3d12_fence_timing), Runtime: bindless flushes replace the set instead of waiting for the device (D3D-314) #2756 and D3D-78: Support Texture1D, Texture1DArray and Texture3D UAVs #773 (d3d12_r9g9b9e5_uav) edit elsewhere in those tests; GPU tests: exact fallbacks on by themselves where the device lacks the feature; gs_tri as compute on MoltenVK (TEST-481) #3078, test: judge the swizzle sources that run in a narrow pixel shader (#618) #3136 and rdna2spirv: ds_swizzle_b32 reads 0 from a source lane that isn't running (translator half of #618) #3126 edit nearby lines ofdocs/testing.md.Tested
CachyOS Linux, AMD Ryzen 7 7700X iGPU (RDNA2, RADV, Mesa 26.3.1). The Windows runtime is cross-built with clang-cl 23.1.5 and xwin (MSVC CRT 14.44, SDK 10.0.26100) through
runtime/cmake/clang-cl-xwin.cmake. Fullctest(140 tests):mainfailedd3d12_compute(#3023)d3d12_compute(#3023),device_proxy(a proxy test over Wine's vkd3d)The six changed tests pass under both. Run directly, they print
host D3D12 is Wine's, not Microsoft's: comparisons with the host are skippedand then their layer-only results. Not tested: Windows or MSVC (no Windows machine here). The change only addshost_wine.h, which other tests already include, and conditions that are false on Windows.No game files. AI-assisted (Claude-Opus).