GPU/HLE: add hybrid CPU core preferences and VICTORY_NULL_MAGENTA diagnostic #171
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!171
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/171/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?
@dutch2005 on GitHub · 2026-11-25 18:43 UTC · original
feat/fast-cores-and-null-magenta→main· +598 −0 · 5 files · 1 commits · closed without mergingGPU/HLE: pin timeline watcher to fast cores, optional slow cores for dstorage workers, and VICTORY_NULL_MAGENTA
Backports two independent runtime/diagnostics utilities:
Hybrid CPU core preference helpers (
VICTORY_FAST_CORES=0opt-out,VICTORY_DISK_CORES=slowopt-in; ported fromfxceless/victory-forkinto standalonecrates/victory-gpu/src/cores.rsto avoid conflicting withframelog.rs):GetSystemCpuSetInformationrecords into efficiency classes and usesSetThreadSelectedCpuSetson hybrid CPUs.victory-queues(timeline.rs) on performance cores by default (VICTORY_FAST_CORES=0disables), and optionally routesdstorageworkers to efficiency cores whenVICTORY_DISK_CORES=slowand >= 8 slow logical processors are present.Missing 2D colour texture diagnostic (
VICTORY_NULL_MAGENTA=1,diagnosticsfeature; ported frommyokex/victory-amd):descriptor/host.rs, substitutes a 1x1 magenta[255, 0, 255, 255]SRV for nullView::Placed(false, _, desc)2D colour views (BC1..BC3,BC7, 8-bitRGBA/BGRA) when enabled underVICTORY_NULL_MAGENTA=1.Verification (
RUST_TEST_THREADS=1):victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker: 114 passed, 0 failed, 4 ignored (skipped pre-existing #102 flake).victory-gpu --lib --features diagnostics --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker: 118 passed, 0 failed, 4 ignored.victory-hle --lib --locked modules::dstorage::tests -- --test-threads=1: 14 passed, 0 failed.cargo clippy -p victory-gpu -p victory-hle --lib --tests --no-deps(default &--all-features): 0 warnings on touched lines.cargo xtask policy --staged: 5 files ok.cargo mutants --in-diff:descriptor/host.rs(--features diagnostics): 27 mutants tested — 26 caught, 1 unviable, 0 missed.victory-hle(modules::dstorage::tests): 6 mutants tested — 5 caught, 1 timeout (work -> ()), 0 missed.MipLevels: 1field (--features diagnostics): 85 tested — 80 caught, 1 unviable, 2 timeouts (parse_cpu_sets), 2 missed (the now-eliminatedMipLevelsmutant +cores::keep_on_slow_cores -> false, which is equivalent on homogeneous CPUs like this Ryzen 9 5900X).@KernelSmoker on GitHub · 2026-11-25 18:47 UTC · original
Verification on PR head
b99d33a(x86_64-pc-windows-gnu, Rust 1.98.1):cargo check --workspace --all-targets --all-features --locked --target x86_64-pc-windows-gnu: passed with no new warnings in touched files.--test-threads=1):victory-hlemodules::dstorage::tests: 14 passed, 0 failed (includingdisk_cores_slow_switch_requires_slow_valuewith child-process re-exec).victory-gpucores::tests:parses_cpu_sets_and_respects_boundaries_and_groupsandpartitions_fast_and_slow_sets_only_for_hybrid_cpus_with_enough_slow_corespassed. (env_switch_and_apply_helpers_handle_opt_out_pin_success_and_failurehit Wine'sSetThreadSelectedCpuSetsstub returningTRUEforu32::MAX, andnull_magenta_colors_missing_2d_color_srvs_when_enabledhit Wine's builtind3dcompiler_47SM 5.1[RootSignature]crash—both Wine-side environment limits, not native Windows failures.)Two small code notes:
crates/victory-gpu/src/timeline.rs:259:crate::cores::keep_on_fast_cores("victory-queues");is ungated whilemod cores;(lib.rs:25) and thedstorage.rs:456call are#[cfg(windows)]. Adding#[cfg(windows)]attimeline.rs:259keepsvictory-gpuclean for non-Windows builds (e.g. if #165 merges).crates/victory-gpu/src/cores.rs:40-41: addingif bytes == 0 { return Vec::new(); }after the size query avoids a redundant secondGetSystemCpuSetInformationcall when the first query fails or returns 0 bytes.Pull request closed