hle: the title's VirtualProtect forwards only the CPU protection; the GPU bits are noted either way #2390
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!2390
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2390"
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?
@FIocker on GitHub · 2026-11-29 12:37 UTC · original
FIocker:contrib/virtual-protect-gpu-bits→main· +23 −6 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCtitle_virtual_protectpassed the console's protection value straight to Windows. WithPAGE_GRAPHICS_*bits in it Windows refuses the call.note_gpu_protectiononly runs when the call succeeds (ok != 0), so a GPU protection changed after allocation was never noted, and the GPU-read-only clip could not act on it.Now:
protect & HOST_PROTECTION.oldreports the current protection viaVirtualQuery.Checked: workspace check clean. The
modules::xmemtests are as on main:a_read_by_range_waits_only_for_a_remapping_that_meets_itfails there too when the xmem module runs alone (a race with other tests' global remaps), with or without this change.🤖 Generated with Claude Code
@Dukestar69 on GitHub · 2026-11-29 12:48 UTC · original · approved these changes
Tested locally merged onto
main(829188e9).crates/victory-hle/src/modules/xmem.rs.cargo test -p victory-hle --lib xmem -- --test-threads=1passed (46 passed; 0 failed; 1 ignored, includinggpu_protection_clears_ro_on_rw_or_plain_protectandgpu_protection_page_alignment) with 0 warnings invictory-hle.Clean separation of CPU vs. GPU protection bits in
VirtualProtect. LGTM.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).