GPU: echo requested format and report required count in DXGI GetDisplayModeList #3466
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!3466
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3466"
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?
@alexandruiulian201-bot on GitHub · 2026-11-27 04:00 UTC · original
alexandruiulian201-bot:fix/dxgi-modes-format-and-count→main· +55 −2 · 1 files · 1 commits · openProblem
In
crates/victory-gpu/src/dxgi.rs,modes(IDXGIOutput::GetDisplayModeList):format: 0(DXGI_FORMAT_UNKNOWN) instead of echoing the requestedformat.MORE_DATA(DXGI_ERROR_MORE_DATA) whenoutis non-null and*count < 1without setting*count = 1to report the required mode count.Fix
formatin the returnedMode.*count = 1before returningMORE_DATAwhen*count < 1.output_modes_reports_count_and_requested_formatcovering null count, count probe, undersized buffer, and normal mode retrieval.Verification
cargo test -p victory-gpu --lib --locked dxgi::tests::: 3 passed.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings: clean.cargo run -p xtask --locked -- policy:191 files ok.AI-assisted. Synthetic unit test only (no game files used).
@oni-swr on GitHub · 2026-11-27 04:27 UTC · original
WARP test report (
victory-gpu,--lib --locked --no-fail-fast)OS: Windows 11 Pro 10.0.26200 (build 26200.9974), x64
Host adapter: WARP only (VICTORY_WARP=1 and VICTORY_D3D12_WARP=1; d3d10warp.dll 10.0.26100.9818); no physical GPU used
dxil.dll: Windows SDK 10.0.26100.0, version 1.8.2502.11 (via VICTORY_DXIL)
rustc/cargo: 1.98.1 (48a229cea 2026-09-01)
Base: main
63bcca43c6Head:
20569dae5b(merged onto main, no conflicts)dxgi::tests::output_modes_reports_count_and_requested_formatruns and passes under WARP (not skipped). It is the only difference in the count (+1).dxgi::tests(out_of_range_enumeration_clears_output,startup_walks_from_device_to_output) still pass.Review note: the test covers the null-count, count-probe, undersized-buffer and normal paths, and it echoes a non-zero requested format (28), so it would fail on the old
format: 0. No concerns.AI-assisted (Claude). Aggregate counts only; no game files used.
@cloph-dsp on GitHub · 2026-11-27 05:31 UTC · original
Independent CPU-only verification of PR #3466 (
DXGI: GetDisplayModeList reports count and requested format).CARGO_TARGET_DIR(D:\Victory-Contrib\target-3466-watch),CARGO_BUILD_JOBS=2.20569dae5b43964b1c6f1375b245f77a41c12f28, merge base63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib -- dxgi::tests::output_modes_reports_count_and_requested_format --exact --test-threads=1 --quiet->1 passed; 0 failed; 232 filtered.git grep -Ffor the new test name on63bcca4returned no hits (test absent on base).git diff --check 63bcca4 HEADexit 0 (clean).@futurepro62 on GitHub · 2026-11-27 09:27 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, since none of them names a GPU run. Tested exact head
20569da(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 867 passed, 0 failed, 10 ignored.output_modes_reports_count_and_requested_format.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.