Repository navigation
dxgi: preserve explicit scaling when matching a physical display mode - #8711
LukeOsland1 wants to merge 3 commits into
Conversation
|
Verified head
AI-assisted. |
|
Independent build + test: PASS, but the new check is vacuous on this machine AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124, one monitor attached. Head
The parent passes too because this display offers no scaled modes. A temporary probe in Suggestion: print how many scaled modes |
|
Tested
|
|
Tested 8cad6b1 on NVIDIA GeForce RTX 4080 SUPER, driver 621.24 (Vulkan 1.4.357), Windows 11 Pro 26300, MSVC 14.44, Ninja RelWithDebInfo (fresh build folder), applied on
(AI-assisted check, Claude Code.) |
|
Tested
AI-assisted (Claude Code). |
|
Tested
AI-assisted: Codex GPT-6.2 Sol ran the tests, Claude Opus 5.5 reviewed the report. No game files used. |
Depends on: #8482
Coordination claim.
After #8482 both centered and stretched modes are listed, but requesting one by its exact descriptor could still return a different variant. The closest-mode search omitted stretched candidates and treated equal size and refresh as a tie regardless of scaling. It now includes the candidate classes requested and uses the exact rational refresh, scan order, and scaling to break ties. Both closest-mode interfaces share this lookup.
On Windows, I passed every explicitly centered or stretched RGBA8 mode from the two attached monitors to both interfaces and compared each result with native DXGI. The regression in the PR checks one available timing per scaling variant and monitor.
The regression failed with the parent runtime. The full dxgi_swapchain_test passed on the head with Vulkan validation enabled on the RTX (32.0.16.1088) and integrated AMD Radeon (32.0.21042.62), with zero validation errors. Both monitors attach to the RTX. The Radeon exercised the swapchain suite. Interlaced modes were unavailable on these displays.
AI-assisted with Codex. Synthetic tests only.