Copy phone photo render targets back to game memory #3363
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!3363
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3363"
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?
@Kitrae on GitHub · 2026-11-29 22:16 UTC · original
Kitrae:fix/phone-gallery-readback→main· +86 −8 · 5 files · 1 commits · closed without mergingFixes #1388.
What it changes
The 960×536 linear RGBA8 target used for phone photos stayed on the host GPU after the capture pass. The game wrote two valid JPEGs from zeroed pixels. Register this render target for the existing texture readback when a draw or clear writes it. The command list copies it back and the pixels land in the game's memory when the submission completes. The existing
VICTORY_TEXTURE_BACKsetting controls whether it is selected.How it was tested
mainwith this patch, a D3D12 regression test cleared a synthetic 960×536 RGBA8 target and checked all 514,560 pixels after the copy back to CPU memory. The existing texture allocation reuse regression test also passed. Both exercised the host GPU.git diff --checkand the asset-policy check for all five changed files passed.Checked for overlap
AI-assisted contribution using OpenAI Codex. The in-game result was verified by the player.
Pull request closed