port: fall back to ID3D12Device3 when Device13 is unavailable #4160
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!4160
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4160"
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?
@tharun-37 on GitHub · 2026-11-30 16:53 UTC · original
tharun-37:fix/port-constants-device3-fallback→main· +15 −5 · 3 files · 2 commits · closed without mergingFixes #3938.
What / why
On Windows 11 23H2 and earlier,
ID3D12Device13::OpenExistingHeapFromAddress1is not available. The renderer port (VICTORY_PORT_CONSTANTS=1) tried to use it and silently fell back to CPU copies, losing the −18 ms CPU/frame benefit.What is in it
inplace::open: forFrom::Part, tryID3D12Device13first; if the cast fails, fall back toID3D12Device3::OpenExistingHeapFromAddress. The port's view always starts at the beginning of the allocated block, so the address-only call meets its requirement.Tested
cargo check -p victory-gpu --lib: passes.cargo test -p victory-gpu --lib inplace:: port::: 10 tests pass (8 inplace + 2 port).cargo test -p victory-gpu --lib: 452 passed, 0 failed, 36 ignored.Not tested
AI use
@trustno1-coder on GitHub · 2026-12-01 18:46 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