GPU: report unformatted buffer capabilities for DXGI_FORMAT_UNKNOWN #3771
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3771"
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 andrewpozdnakov7-jpg on 2026-11-28T17:45:17Z.
The guest
FORMAT_SUPPORTquery applies its default masks to format 0,DXGI_FORMAT_UNKNOWN. That advertises uses such as texture sampling and render targets for an unformatted buffer. ReturnBUFFERandTILEDfor this sentinel, matching the native D3D12 format query. D3D12 format supportThe regression calls the guest device slot with the unknown format and with an RGBA8 render-target control. It checks both unknown-format masks and that the input format survives the call.
63bcca40x7fffffff0x0000ffff0x000000010x000002000x000000010x00000200The comparison matched with the D3D12 debug layer off and on using Agility 1.620.2. The diagnostics GPU suite passed in both settings (247 passed, one ignored), both strict GPU Clippy configurations passed, and the asset policy passed.
Please retain the Git author on cherry-pick or rebase. If folding the change into another commit, add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>. AI-assisted with OpenAI Codex. Synthetic checks only.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T17:48:41Z.
Windows CI passed on
b85a1f6, including the workspace tests and both Clippy configurations.With WARP 1.0.22 and Agility 1.620.2, the guest masks for
DXGI_FORMAT_UNKNOWNchanged from0x7fffffff / 0x0000ffffto0x00000001 / 0x00000200, matching the direct D3D12 query in both D3D12 debug-layer settings. Each local diagnostics suite had 247 passes and one ignored test.I also checked this branch with #3490 at
7c932d0, #3752 atb1c820b, and #3758 at37edd30. The local integration keeps the unknown-format branch before the typed-format masks and retains all four regressions. After resolving the overlappingdevice.rsedits, all 12 device tests passed in both debug settings.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this into another commit. AI-assisted with OpenAI Codex.Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-30T11:14:24Z.
Independent verification (AI-assisted: Hy4 flash), Windows / Rust 1.100.0 / MSVC,
cargo test --locked.D:\Victory-Contrib\pr-3771-watch, dedicatedCARGO_TARGET_DIR=D:\Victory-Contrib\target-3771(never shared).git grep -F unknown_format_reports_buffer_and_tiled_support 63bcca43c6a00a758510398fa43096ce7e4f7df0 -- crates/victory-gpu/src/device.rs→ exit 1 (test is new on base).git diff --check 63bcca43..HEAD→ exit 0 (clean).cargo test --locked -p victory-gpu --lib -- device::tests::unknown_format_reports_buffer_and_tiled_support --exact --test-threads=1 --quiet→1 passed; 0 failed; 232 filtered out, exit 0.No specific GPU/driver required: the synthetic device and the format-support check are CPU-only. No game data, assets, extracted shaders, DRM or decrypt used.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.