hle: the title's VirtualProtect forwards only the CPU protection; the GPU bits are noted either way #2390
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by FIocker on 2026-11-29T12:37:07Z.
title_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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T12:48:31Z.
Review: APPROVED
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).