GPU: clear DXGI outputs on out-of-range enumeration #553
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!553
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/553/head"
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?
@broccolize on GitHub · 2026-11-24 04:49 UTC · original
broccolize:gpu/clear-dxgi-enumeration-outputs→main· +24 −2 · 1 files · 1 commits · merged 2026-11-25 00:20 UTCEnumAdapters,EnumAdapters1, andEnumOutputsnow clear the caller’s output pointer when an index is out of range and returnDXGI_ERROR_NOT_FOUND. I verified that native DXGI clears the pointer at the first missing index for all three methods.The regression starts each output slot with a non-null pointer. It failed on
mainand passes with this change.On Windows with Rust 1.98.1 (GNU), the GPU suite passed 44 tests by default and 46 with diagnostics. Both runs had zero failures and one ignored benchmark. The asset policy and
git diff --checkpassed.AI-assisted with Codex. The regression used synthetic objects.
@geiyiliyabumo on GitHub · 2026-11-24 12:13 UTC · original
Independent verification & code review on Windows 11 Pro (build 26100) + AMD Radeon RX 9060 XT (RDNA4, driver
32.0.32029.2010, Rust1.98.1), cleanly merged ontomain(ffe310e):cargo xtask policy: PASS (154 files ok)cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: PASScargo clippy -p victory-gpu --all-targets --features diagnostics --locked -- -D warnings: PASScargo test -p victory-gpu --locked: 51 passed, 0 failed, 1 ignored (including newdxgi::tests::out_of_range_enumeration_clears_output)Diff review (
crates/victory-gpu/src/dxgi.rs): clean, minimal, and matches COM/DXGI contract — zeroing non-null*outonDXGI_ERROR_NOT_FOUNDprevents callers reusing a slot across loop iterations from seeing a stale pointer.AI-assisted; synthetic tests only, no game files.