fix(gpu/texture,descriptor): default-on TEXTURE_SAFE_SHOW to prevent binding unuploaded pooled textures #299
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!299
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-299"
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?
@Androtim on GitHub · 2026-12-02 00:11 UTC · original
Androtim:fix/texture-safe-show→main· +255 −7 · 5 files · 1 commits · merged 2026-12-02 00:19 UTCSummary
Prevents reused 64 MiB pool texture placements from being exposed to shader descriptor slots before their first GPU upload finishes executing (eliminating stale/swapped pool-chunk texture artifacts, adapted cleanly from crbns/victory-tapin @ 3dba942, GPL-3.0).
Changes
ote_sent() at all GPU upload paths (
ecord_upload for movie planes & direct CPU uploads, PreludeUpload::finish_refresh, and upload_on_card).
Verification
Paired 90s Plain --release 1440p A/B (PlayParity, LowVram, DLSS quality, -AutoNudgeMenu)
dbe161b)@Androtim on GitHub · 2026-12-02 00:19 UTC · original
Audited full diff (
2805968e,+255 -7across 5 files), submission-ordering correctness, plain---release90s A/B, and--features diagnosticsvisual frames:STARTED.fetch_add(1)runs at the start ofHost::submitbeforeStep::Host(defer_host) andPreludeUpload::finish_refresh, sonote_sent()records the exact in-flight submission number (Release/Acquire paired withahead::is_done).VICTORY_TEXTURE_SAFE_SHOWandVICTORY_SHOW_AFTERare default-on with=0safety kill-switches only;texture_slots_flipis bounded bySAFE_SHOW_MAX_WAIT_FRAMES = 8.--release90s A/B (20windows):min FPS 3.9 -> 7.9 fps,copyback 11.2 -> 9.9 ms,VRAM 6,273 -> 6,091 MB(over=0 MB,room_false 23.1% -> 0.0%,no_room_so_far 6,000 -> 0),final_waiting 11,165 -> 1,830(PASS,-83.6%),showed_another_view 5 -> 0, peak private RAM-792 MB(22,192 -> 21,400 MB), peak WS-1,135 MB,0crashes.main(eff27355,7,346draws):+0.35 fps(11.45 -> 11.80),-0.2 mspreparing(37.2 -> 37.0 ms),-1.1 mscopyback(11.0 -> 9.9 ms),-76%final_waiting(7,610 -> 1,830).--features diagnosticsPNG inspection: Inspectedframe-4752.png,frame-5721.png, andframe-5737.pngdirectly — crisp lighting, zero swapped/corrupted textures,0.0%magenta (near_black=55.25%is purely natural dim interior scene shadow under bright HDR windows, not black-texture corruption).eff27355(host.rs), CI green (46776659252). Merging now.