GPU: implement IDXGIAdapter2::GetDesc2 #1891
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1893"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by DoubleD17 on 2026-11-25T00:16:54Z.
The DXGI shim advertises IDXGIAdapter2 through QueryInterface, but its GetDesc2 entry is still unimplemented. Wire the descriptor method and reuse the logical adapter identity and memory information returned by GetDesc. Check the vtable slot and descriptor layout against the Windows bindings, and return E_INVALIDARG for a null output.
On Windows x64 with Rust 1.98.1 and MSVC, the new synthetic test detected the unwired method on base
e82a6ad. The two DXGI unit tests passed on211364awithcargo test --offline --locked --jobs 2 -p victory-gpu --features diagnostics --lib dxgi::tests::. This verifies the adapter API on the CPU.Adapted from fxceless/victory-fork #345.
AI-assisted.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T00:32:46Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
IDXGIAdapter2::GetDesc2 implemented: adapter description query — small DXGI completeness fix.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T02:17:33Z.
Automated triage for the maintainers.
Needs work: evidence for the new return values. The rebase fixed the conflict, and the head merges cleanly. In
crates/victory-gpu/src/dxgi.rs, the PR wires slot 11 (0x58) ofADAPTER_FUNCTIONSto a newadapter_description2. That matches the "adapter 3 + 1 + 1" layout already noted there. It reusesGetDesc's values throughdescribe_adapterand checks the layout against the Windows bindings at compile time. The mechanics look right. However, this is a new runtime return value with no evidence behind it:flags = 0and DMA-buffer preemption granularity are chosen, not taken from the console's behaviour or public documentation.Please add the evidence for both. Also note that slot 10 (
GetDesc1) is still unwired; if a title reachesGetDesc2, it likely reaches that one too.CI: passing (
check).Generated by Claude Code
Pull request closed