Repository navigation
Conversation
Xvania7
left a comment
There was a problem hiding this comment.
Verified bbac5c0 on Windows 10 + NVIDIA GeForce RTX 5060:
- Clean isolation of
best_adapter()andsupports_fl12()viaEnumAdapterByGpuPreference(HIGH_PERFORMANCE) cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warningscargo xtask policy: 182 files ok- GitHub Actions Windows CI passed.
Approving.
catminou4
left a comment
There was a problem hiding this comment.
Prefer high-performance DXGI adapter supporting FL 12.0, falling back to default device. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. See cluster note on #2367 — these two collide.
|
Automated triage for the maintainers. Re-reviewed after the rebase. The branch now merges cleanly, and the content is the same as the version reviewed earlier. In One minor point, not blocking: Verdict: merge candidate (a recommendation to look, not an approval). CI: passing. Generated by Claude Code |
bbac5c0 to
3ffa2d5
Compare
|
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
3ffa2d5 to
4028dc1
Compare
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed crates/victory-gpu/src/host.rs at 4028dc19 merged onto origin/main (63bcca43) and verified live on a dual-GPU host (Ryzen 9 9950X AMD Radeon iGPU + NVIDIA GeForce RTX 5090 dGPU) as well as WARP (VICTORY_D3D12_WARP=1) with VICTORY_D3D12_DEBUG=1.
Adapter selection & fallback audit
create()(host.rs:193) preserves theVICTORY_D3D12_WARPsoftware branch untouched; for hardware creation it callsbest_adapter()(host.rs:426), which queriesIDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE), filters outDXGI_ADAPTER_FLAG_SOFTWARE, and checks FL 12.0 via a null out-pointer (supports_fl12athost.rs:409), falling back to max non-softwareDedicatedVideoMemoryand finallyD3D12CreateDevice(None, ...)if needed.- Non-blocking maintainer notes:
adapter_memory(host.rs:391) could optionally useEnumAdapterByLuidlikevideo_memory; open#3073addresses the same multi-GPU adapter preference (and#2053adds GPU logging/warnings).
Verification
cargo run -p xtask -- policy: 191 files ok.cargo clippy -p victory-gpu --all-targets -- -D warnings(default and--all-features): clean.- Live dual-GPU selection probe on a host enumerating
[0] NVIDIA GeForce RTX 5090 (0x10de, 33,750,515,712 B),[1] AMD Radeon(TM) Graphics (0x1002, 2,119,970,816 B), and[2] Microsoft Basic Render Driver (0x1414, flags=0x2):- Default mode selected
NVIDIA GeForce RTX 5090(sw=false,adapter_memory = 33,750,515,712). VICTORY_D3D12_WARP=1(--features diagnostics) still selectedMicrosoft Basic Render Driver(0x1414:0x008c,sw=true).
- Default mode selected
host::withVICTORY_D3D12_DEBUG=1: 35/35 passed on RTX 5090 (skippingdynamic_slots_are_held_until_released) and 36/36 passed on WARP (--features diagnostics, skipping the pre-existingmaincompositor_failure_presents_primary_in_the_same_frameDebug Layer mismatch).
Split out of #2146 per maintainer triage feedback.
What this changes
D3D12CreateDevice(None, ...)call incrates/victory-gpu/src/host.rswithbest_adapter():IDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)first so Windows per-app GPU preferences and discrete/eGPU devices take priority on hybrid laptops instead of falling onto an integrated GPU.D3D_FEATURE_LEVEL_12_0support with a null out-pointer (supports_fl12()) before selecting an adapter.DedicatedVideoMemory, then toD3D12CreateDevice(None, ...)if needed.adapter_memory(&device)(LUID-matched via DXGI) to loghost device memoryon startup.Closes #1226.