Fix GPU memory protection and depth target invalidation

This commit is contained in:
nmzik
2026-07-17 18:26:10 +02:00
parent 75d20486ba
commit 5ed447818f
2 changed files with 6 additions and 5 deletions
+2 -4
View File
@@ -3455,10 +3455,8 @@ int KYTY_SYSV_ABI KernelMprotect(const void* addr, size_t len, int prot) {
if (old_gpu_mode == GpuAccessMode::NoAccess) {
continue;
}
if ((old_range.type != VirtualRangeType::Stack &&
old_range.type != VirtualRangeType::Code) ||
!GetGpuResources().IsMapped(old_range.start, old_range.size)) {
EXIT("GPU protection transition requires tracked stack/code memory: addr=0x%016" PRIx64
if (!GetGpuResources().IsMapped(old_range.start, old_range.size)) {
EXIT("GPU protection transition requires tracked memory: addr=0x%016" PRIx64
" size=0x%016" PRIx64 " type=%s\n",
old_range.start, old_range.size, Common::EnumName(old_range.type).c_str());
}