Repository navigation
Conversation
|
Independent Windows verification (AI-assisted) of Both A native DXGI/D3D12 probe and temporary logging in the shim test measured these results using synthetic HWND swap chains:
On the RX 9070 XT, the output name, desktop bounds, rotation, and color space matched. The shim's host comparison checks the first output only when the corresponding native adapter exposes one, so it misses the integrated Radeon case. Adding a zero-output case for an adapter without an attached monitor would cover this topology, including the |
|
Tested f59c09d on Windows 11, RTX 5080 (driver 616.92) and AMD Radeon iGPU gfx1036 (driver 26.10.1):
AI-assisted. |
|
Tested f59c09d (merged onto main 1628210) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0, three monitors on the one card: pass
I also compared the shim with host DXGI output by output, using a local copy of
AI-assisted (Claude). |
|
Tested f59c09d on NVIDIA RTX 5060 Ti (Blackwell), NVIDIA 621.01 (Vulkan 1.4.357), Windows 11, VS Build Tools 2022 (MSVC) + Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0: pass.
AI-assisted (Qoder): I built the full runtime with MSVC and ran ctest. |
|
Independently tested |
|
Tested
Not checked: |
|
Follow-up DXGI comparison at
|
|
@nightsale I verified an opt-in regression check in the existing DXGI fixture. It compares BitsPerColor and ColorSpace from the shim and native IDXGIOutput6 for the same display on the same DXGI adapter LUID. On the RTX 5060 Laptop, the check fails with native 10 bpc / SDR versus shim 8 bpc / SDR with HDR off, and native 10 bpc / PQ BT.2020 versus shim 8 bpc / SDR with HDR on. The default fixture passed with the opt-in disabled. Windows HDR was returned to its original off state and verified. No game data; AI-assisted. Would you prefer this as a follow-up after #2976, or in this PR? My preference is a follow-up that queries native GetDesc1 for the matching HMONITOR and keeps the current SDR defaults for the headless fallback. The test can compare a freshly created factory in whichever color mode Windows is already using, without toggling system HDR in CTest. |
|
Tested f59c09d on Sapphire RX 9070 XT Nitro+ (AMD 26.11.2 LLPC, driverVersion 2.0.416), Windows 11 26200, MSVC: pass.
AI-assisted run. |
|
I tested a local follow-up on |
|
Follow-up on the local GetDesc1 patch: I simulated an empty Win32 monitor enumeration and exercised the shim through EnumOutputs and IDXGIOutput6::GetDesc1 on the RTX 5060 Laptop GPU. It exposed one synthetic 1920x1080 output with a null HMONITOR, 8-bit RGB full-range BT.709, and min/max/full-frame luminance of 0/80/80 cd/m². This was a simulation with the monitors connected. After removing the temporary probe, I rebuilt and reran the full dxgi_swapchain_test successfully. AI-assisted. |
|
Tested f59c09d merged onto main f847748 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
- Upgrade dxgi_com.h to dxgi1_6.h for IDXGIOutput6 / DXGI_OUTPUT_DESC1. - Enumerate Win32 monitors via EnumDisplayMonitors / EnumDisplaySettingsW with headless 1920x1080@60 fallback. - Implement Output (IDXGIOutput..IDXGIOutput6) and wire Adapter::EnumOutputs and SwapChain::GetContainingOutput against host dxgi.dll behavior. - Add D3D-313 unit and host-comparison coverage in dxgi_swapchain_test.cpp (synthetic, no game data). AI-assisted.
Implements D3D-313 (
IDXGIAdapter::EnumOutputs,IDXGIOutput..IDXGIOutput6, andIDXGISwapChain::GetContainingOutput).Claim: #2516 (comment) (tracked as
D3D-313in #313).Base:
main(77444fa0), no dependencies on open PRs.Summary of changes
runtime/shims/dxgi_com.h: switch from<dxgi1_5.h>to<dxgi1_6.h>forIDXGIOutput6andDXGI_OUTPUT_DESC1.runtime/shims/dxgi_com.cpp:EnumDisplayMonitors,GetMonitorInfoW, andEnumDisplaySettingsW, placing the primary monitor at index0and keeping a1920x1080@60headless fallback.dwmapi.dll(DwmFlush) with aSleep(16)fallback forWaitForVBlank.Output final : public IDXGIOutput6(IUnknown,IDXGIObjectincludingGetParent,GetDesc/GetDesc1,GetDisplayModeList/GetDisplayModeList1,FindClosestMatchingMode/FindClosestMatchingMode1,WaitForVBlank,GetFrameStatistics,TakeOwnership/ReleaseOwnership, overlay/hardware-composition queries,DuplicateOutput/DuplicateOutput1), matching measured hostdxgi.dlledge cases (includingDXGI_ERROR_MORE_DATApreserving copied count).Adapter::EnumOutputs(E_INVALIDARGon null output,DXGI_ERROR_NOT_FOUNDout of range) andSwapChain::GetContainingOutput(MonitorFromWindow(..., MONITOR_DEFAULTTONEAREST)match with output0fallback).runtime/test/dxgi_swapchain_test.cpp:EnumOutputs,Output::GetParent,GetDesc/GetDesc1,GetDisplayModeList/1(two-pass,DXGI_ERROR_MORE_DATA, unsupported formats),FindClosestMatchingMode/1,WaitForVBlank,GetFrameStatistics,CheckHardwareCompositionSupport,CheckOverlaySupport,SupportsOverlays,DuplicateOutput,SwapChain::GetContainingOutput, and hostdxgi.dllcomparison (Optimus/multi-GPU safe).Verification
AI-assisted).RelWithDebInfo), NVIDIA GeForce RTX 3060, driver 621.24,LEONIDA_VK_VALIDATION=1(no game data, synthetic tests only)..\scripts\build_runtime.ps1): exit0(0warnings indxgi_com.cpp/dxgi_swapchain_test.cpp)..\runtime\build\dxgi_swapchain_test.exe): exit0,PASS(0Vulkan validation errors).ctest --test-dir runtime\build --output-on-failure -j4):100% tests passed, 0 tests failed out of 121(114passed includingdxgi_swapchain,d3d12_present,xbox_present;7skipped:shader_library_corpus,bink_decode,fsr_dispatch,bvh_builder,bink_audio,d3d12_rgb9e5_rtv,d3d12_first_light;1disabled:gameinput).python -m compileall -q make_game.py tools tests-> exit0python -I make_game.py --help-> exit0python -I tests/test_docs_links.py->5testsOKpython -I tests/test_ctest_registration.py->4testsOKpython -m unittest discover -s tests/semantic->4137testsOK