GPU: report single-sample quality for BC formats #3517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3517"
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-27T12:25:45Z.
Change
The
MULTISAMPLE_QUALITY_LEVELSquery in #718 can return one level for BC1 through BC7 at 2, 4 or 8 samples. Use the existing format table to return zero for those three counts on standard BC formats. A BC query at one sample returns one level. The answer is adapter independent. D3D12 format support tablesVerification
63bcca4, the new guest device regression fails withBC1_TYPELESSat two samples, which reports one quality level. At2356e25, all 308 guest cases pass, including the RGBA8 controls, two flag values and checks that the inputs are preserved.50a6dd7based on #3490 head7c932d0. That PR covers the separate format-support flags.These are synthetic API checks. Confirmation of this query at a game call site is still open.
Refs #718. AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T13:00:44Z.
Independent CPU-only verification of PR #3517 (
GPU: report single-sample quality for BC formats).2356e25e3ac8f43653b59234b6a935d4c3964842; merge base:63bcca43c6a00a758510398fa43096ce7e4f7df0.CARGO_BUILD_JOBS=2, per-worktreeCARGO_TARGET_DIR=D:\Victory-Contrib\target-3517-watch.git grep -F -c block_compressed_formats_only_report_single_sample_quality 63bcca43 -- crates/victory-gpu/src/device.rs→ 0 hits (exit 1); the test is genuinely new.cargo test --locked -p victory-gpu --lib -- device::tests::block_compressed_formats_only_report_single_sample_quality --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 232 filtered, exit 0.git diff --check 63bcca43 HEAD→ exit 0 (clean).Only the synthetic fake-vtable
CheckFeatureSupporttest was replayed; no real D3D12 adapter path was exercised. Full crate suite not run.AI-assisted (Hy4 flash). GPU/driver: N/A for this CPU-only synthetic test. No game data.
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-27T19:33:14Z.
NVIDIA full-suite run, to go with the reports above by cloph-dsp, since none of them names a GPU run. Tested exact head
2356e25(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 867 passed, 0 failed, 10 ignored.block_compressed_formats_only_report_single_sample_quality.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.