Repository navigation
Conversation
… with DXGI_ERROR_UNSUPPORTED There is no Microsoft D3D12 on the host, as there is no DXGI (CreateDXGIFactory1 already answers DXGI_ERROR_UNSUPPORTED). d3d12.lib imports D3D12CreateDevice as ordinal 101, which the host did not export, so a test that tries to create a host device for comparison stopped at an unimplemented import instead of taking its own "no host device" path. d3d12_fence_timing_test is one: GetCustomHeapProperties creates a default-adapter device to compare with. Tested on an Apple M5 (macOS 26.6, MoltenVK 1.4.2): d3d12_fence_timing_test passes with the matching test change, and the other D3D12 tests keep their results.
Fr0gzilla
force-pushed
the
macos-host/d3d12-create-device
branch
from
November 23, 2026 17:47
394ced1 to
fccf11b
Compare
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.
What and why
The host answers
CreateDXGIFactory1withDXGI_ERROR_UNSUPPORTED, but it did not exportD3D12CreateDevice(d3d12.libimports it as ordinal 101). So a test that creates a Microsoft D3D12 device to compare with stopped atunimplemented import called: d3d12.dll!#101. It never reached its own "no host device to compare with" path.d3d12_fence_timing_testis one such test:GetCustomHeapPropertiescreates a default-adapter device. This change adds the stub next toCreateDXGIFactory1. It returnsDXGI_ERROR_UNSUPPORTEDand sets*ppDeviceto null when given.The matching test-side change is Fr0gzilla/Leonida@5400acf, going upstream to ItsNotRexed/Leonida. It covers
depth_resolve,query_rules,fence_timingandclear, which asked for DXGI or WARP before checkinghost_is_wine().Tested
Apple M5, macOS 26.6, MoltenVK 1.4.2 (universal release), D3D12 tests cross-built with clang-cl + xwin and
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded, everyd3d12_*_test.exerun throughmacos_host:fence_timing,depth_resolveandquery_rulesnow pass.clearskips because it has no WARP to compare with.xdxr_rtpasses when given its output folder, as CTest does.uav_clearstill fails: NaN payloads cleared through the R32_UINT view of an R32_SFLOAT image come back as0x7fc00000, which looks like MoltenVK canonicalising them in the clear. That is not addressed here.Build note: with CLT 26.6 and the MacOSX27.0 SDK installed,
build.shneedsSDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX26.5.sdk(see ItsNotRexed/Leonida#2947).Checklist