GPU: report integer color formats without blend support #3758
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3758"
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-28T16:04:01Z.
The guest
FORMAT_SUPPORTquery advertisesBLENDABLEfor typed integer color formats. Host PSO creation already disables blending for those formats. This makes the feature query use the same classification as descriptor signedness and PSO setup. Direct3D 12 format support tablesI compared the guest blend flag with direct D3D12 queries on app-local WARP 1.0.22 and Agility 1.620.2. Main
63bcca4disagreed for all 21 typed integer color formats. The patch matched all 27 queries, including six UNORM, sRGB and floating-point controls. The same results held with the D3D12 debug layer off and on.The vtable regression checks each integer format and verifies the render-target bit for R32_UINT. This follows the integer-target PSO handling discussed in #2775.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit. AI-assisted with OpenAI Codex.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T16:07:26Z.
Windows CI passed on
37edd30, including the workspace tests and both Clippy configurations.In the same guest/host comparison, the blend flag matched WARP for 6/27 formats on main and 27/27 with this fix. On WARP 1.0.22 with Agility 1.620.2, the GPU diagnostics suite reported 247 passes and one ignored test with the D3D12 debug layer off and again with it on.
I also tested this change locally with #3490 at
7c932d0and #3752 atb1c820b. The changes overlap in the format query and its tests. Keeping all three flag checks yielded 11/11 device tests and 4/4 host pipeline tests passing.Please retain the Git author if carrying this 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-28T16:21:03Z.
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
37edd30c4737722b1e87a0d5cb5385332e19bec5, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib -- device::tests::integer_color_formats_do_not_advertise_blending --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 232 filtered, exit 0 (2 pre-existing warnings in the lib test build).git grep -Ffor the test name on the parent returned no match (test is new on this PR);git diff --check 63bcca4 HEADclean (4 files, +45/-42 — small refactor of the integer-format helper intoresource.rs).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.