fix rebase

This commit is contained in:
auser1337 2024-10-19 18:51:13 -07:00
parent 53d936f5fa
commit 124791332f
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#include "core/signals.h"
#include "video_core/page_manager.h"
#include "video_core/renderer_vulkan/vk_rasterizer.h"
#define ENABLE_USERFAULTFD 1
#ifndef _WIN64
#include <sys/mman.h>
#ifdef ENABLE_USERFAULTFD
@ -142,6 +142,9 @@ struct PageManager::Impl {
}
void Protect(VAddr address, size_t size, bool allow_write) {
ASSERT_MSG(owned_ranges.find(address) != owned_ranges.end(),
"Attempted to track non-GPU memory at address {:#x}, size {:#x}.", address,
size);
#ifdef _WIN32
DWORD prot = allow_write ? PAGE_READWRITE : PAGE_READONLY;
DWORD old_prot{};

View File

@ -212,8 +212,6 @@ vk::SamplerAddressMode ClampMode(AmdGpu::ClampMode mode) {
[[fallthrough]];
case AmdGpu::ClampMode::ClampBorder:
return vk::SamplerAddressMode::eClampToBorder;
case AmdGpu::ClampMode::ClampHalfBorder:
return vk::SamplerAddressMode::eClampToBorder;
default:
UNREACHABLE();
}