GPU: query native format support and multisample quality levels #1369
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!1369
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1369/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?
@fuzeofficlal on GitHub · 2026-11-24 17:38 UTC · original
fuzeofficlal:fix/gpu-format-and-msaa-support-718→main· +214 −5 · 1 files · 1 commits · closed without mergingFixes #718.
Summary
D3D12_FEATURE_FORMAT_SUPPORTandD3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS(SampleCountin1 | 2 | 4 | 8) incheck_feature_supportto the hostID3D12Device::CheckFeatureSupportthroughresource::pc_format.S_OK) for console-only formats without a host mapping (116,117,189..=191) instead of reporting every format as universally renderable and multisample-capable, while preserving input fields and propagating hostHRESULTerrors.Verification
BC1, depth/stencil118..=120 -> 45..=47, unmapped console formats, and sample counts1/2/4/8):VICTORY_D3D12_DEBUG=1): passed (0debug errors)VICTORY_D3D12_DEBUG=1): passed (0debug errors)cargo clippy --workspace --all-targets --all-featuresandcargo xtask policy: passed.@Marvisak on GitHub · 2026-11-25 01:24 UTC · original · edited 2026-11-25 06:25 UTC
Automated triage for the maintainers.
Needs work. It now merges cleanly with
main.device.rs::check_feature_supportnow answers the title'sFORMAT_SUPPORTandMULTISAMPLEqueries with the host adapter's capabilities, and it reports zero support for 116, 117 and 189 to 191. That changes runtime return values the title sees, and the evidence given is a comparison with the host's ownCheckFeatureSupport, which shows the code forwards correctly but not that the title should see the PC answer. Two concrete concerns:resource.rson main documents them and gives them element sizes. Telling the title they have no support at all could steer it away from paths it uses on the console, or make it fail.What would change the verdict: evidence of what the console reports for these queries, or of what the title does with the answer (the call sites and which bits it tests), plus an answer for the console-only formats that matches what VIctory can actually create for them, rather than zero.
CI: passing (
check).Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-25 17:20 UTC · original
Closing this PR: as noted in triage, validating console-specific
FORMAT_SUPPORT/MULTISAMPLEquery behavior requires runtime call-site evidence from a real title, which I do not have locally. Keeping the PR queue focused on verified changes.Pull request closed