Improve diagnostics for unknown DXGI formats #277
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!277
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-277"
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?
@dhruv0807 on GitHub · 2026-11-27 07:33 UTC · original
dhruv0807:fix-unknown-dxgi-format-diagnostics→main· +32 −9 · 3 files · 2 commits · merged 2026-11-27 13:05 UTCSummary
Improves error reporting when an unknown DXGI render-target format is encountered.
Changes
color_formats()to returnResult<Vec<Format>, u32>so unknown DXGI format values are preserved.How it was tested
cargo test -p victory-gpu native::state::tests— passed (10 tests).cargo test -p victory-gpu native::console_state::tests— passed (5 tests).cargo check -p victory-gpu— passed.tools/macos/run-summary.sh --self-test— passed (self-test ok).git diff --check origin/main...HEAD— passed (no whitespace errors).A broader test run could not complete because
/usr/local/lib/libmetalirconverter.dylibis missing on this machine.@LakshanSivakumar on GitHub · 2026-11-27 08:08 UTC · original
Thank you for your first pull request. The change does what the title says, and the unit test pins it.
Please update the branch on main, and fill in the "How it was tested" part of the template (the exact commands you ran and their result). Your workflow needs my approval to run; I will do that. I have not run it myself.
One thing to check: the refusal text now has the format number in it. Please run
tools/macos/run-summary.sh --self-testand say it still passes.3e3d8cd904tof1c799ff6b@dhruv0807 on GitHub · 2026-11-27 08:23 UTC · original
Thanks! I've rebased the branch onto the latest
mainand pushed the update. I also rantools/macos/run-summary.sh --self-testsuccessfully and updated the PR description with the exact test commands and results.@LakshanSivakumar on GitHub · 2026-11-27 10:32 UTC · original
Thank you. The rebase, the filled-in description and the self-test run are all there. The only thing left is your workflow, which needs my approval to run. Once it has run and passed I will merge. I have not run it myself.
@dhruv0807 on GitHub · 2026-11-27 10:36 UTC · original
Thanks for confirming! Appreciate you reviewing the changes. I'll wait for the workflow approval and its result.
@LakshanSivakumar on GitHub · 2026-11-27 11:35 UTC · original
Your workflow has run now. Clippy fails in your new test: "field assignment outside of initializer for an instance created with Default::default()" (the test build of
victory-gpu). Please build the value with a struct literal (Type { field: value, ..Default::default() }) and runcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsbefore you push. After that it can merge.@dhruv0807 on GitHub · 2026-11-27 12:13 UTC · original
Thanks! I've pushed the fix in commit
4e857b2.I've now successfully run the exact requested command:
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsIt completes successfully with no warnings or errors.
The test now uses a struct literal with
..Default::default()as requested.Ready for review!