Port 1 opens on Windows 11 before 24H2: OpenExistingHeapFromAddress without ID3D12Device13 #3962
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3962
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3962"
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?
@danielsteman on GitHub · 2026-11-30 13:06 UTC · original
danielsteman:fix/port-device3-fallback→main· +93 −6 · 2 files · 2 commits · closed without mergingFixes #3938.
Credit: the fix and every measurement below come from @ntrglcrn in #3938. This PR turns their local change into a patch and credits them as co-author on the commit.
Problem
With
VICTORY_PORT_CONSTANTS=1,port::open_regionopened the title's graphics memory only throughID3D12Device13::OpenExistingHeapFromAddress1. That interface exists only on Windows 11 24H2 and later. On 23H2 the cast fails withE_NOINTERFACE, so every region quietly falls back to a host copy:Change
inplace::opennow handlesFrom::Partitself:ID3D12Device13::OpenExistingHeapFromAddress1, as before.Device13is missing (Windows 11 before 24H2) or refuses, and the part is its whole allocation, it opens it withID3D12Device3::OpenExistingHeapFromAddress, which every Windows has.Port 1's view of the stretch is always a whole allocation (
MapViewOfFile), so it qualifies, andport::open_regionneeds no branch of its own.place_part(VICTORY_INPLACE) and the census get the same fallback whenever their part is a whole allocation. The rules at the top ofinplace.rsnow record that the older call takes a whole committed view of a section.Reporter's results (RTX 3080, Windows 11 Pro 23H2 build 22631, driver 621.24, Series X profile)
Test
inplace::tests::warp_a_whole_view_opens_without_device13runs on WARP. It callsopen_partwith the newer call switched off, which is the path a host withoutDevice13takes, whatever the runner has. The test checks:SEC_RESERVEsection opens;Run on Windows (
windows-latest, this PR's head, on my fork while upstream CI waits for approval: run 46432250492):These are all of
port::testsandinplace::tests, including the WARP probe, whose output shows the runner made a WARP device.cargo clippy -p victory-gpu --all-targetspasses.Not green, and not from this PR:
-D warnings) fails onmainat this PR's base41adb551.cargo test --workspacestops invictory-formats: 3bcpack::tests::oracle_parity_*BC7 tests fail. This PR does not touch that crate. Because cargo stopped there, the rest ofvictory-gpu's suite did not run in that step.Review notes: the fallback first sat in
port.rsand ran only when theDevice13cast failed. A review moved it intoinplace::open, so it also covers a refusal and everyFrom::Partcaller.🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-12-01 18:47 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed