GPU: report typed depth formats without color target support #3752
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3752"
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-28T15:05:46Z.
The
FORMAT_SUPPORTreply on main setsRENDER_TARGETandBLENDABLEforD32_FLOAT_S8X24_UINT,D32_FLOAT,D24_UNORM_S8_UINT, andD16_UNORM. These are typed depth/stencil formats. Clear the two color flags for those four formats and keep the depth/stencil bit. Direct3D 12 format support tables.On app-local WARP 1.0.22 with Agility 1.620.2, I compared the selected guest flags with direct
D3D12_FEATURE_FORMAT_SUPPORTqueries. Main63bcca4disagreed on all four depth/stencil formats. The patched reply matched on all four, and RGBA8, R32_FLOAT, and R16_UNORM matched both before and after. The same seven cases ran with the D3D12 debug layer off and on.The checked-in regression exercises the device vtable and checks that each input format is retained. This is a focused companion to the BC-format change in #3490 and the report in #718.
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 andrewpozdnakov7-jpg on 2026-11-28T15:08:37Z.
Windows CI passed on the exact
b1c820bhead, including workspace tests and both Clippy configurations.The synthetic flag comparison matched direct WARP results for all four depth/stencil formats and all three color controls. The full local GPU diagnostics suite had 247 passes and one ignored with the D3D12 debug layer off and on. I also merged this head locally with #3490 at
7c932d0. All ten device tests passed, including both format-support regressions.Please retain the Git author if carrying the fix separately. If folding it into another commit, please add Co-authored-by: andrewpozdnakov7-jpg [email protected]. AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T15:20:31Z.
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
b1c820b49a22ca322de08e941910393276f46ec6, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib -- device::tests::typed_depth_formats_do_not_advertise_color_target_support --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 232 filtered, exit 0.git grep -Ffor the test name on the base returned no match (test is new on this PR);git diff --check 63bcca4 HEADclean (1 file, +29).CARGO_TARGET_DIR(never shared) withCARGO_BUILD_JOBS=2.AI-assisted (Hy4 flash).
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.