mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 09:22:35 +00:00
linux fix
This commit is contained in:
parent
1d23f40e02
commit
4474f97478
@ -1063,7 +1063,17 @@ ScePthread PThreadPool::Create(const char* name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _WIN64
|
||||||
auto* ret = new PthreadInternal{};
|
auto* ret = new PthreadInternal{};
|
||||||
|
#else
|
||||||
|
// TODO: Linux specific hack
|
||||||
|
static u8* hint_address = reinterpret_cast<u8*>(0x7FFFFC000ULL);
|
||||||
|
auto* ret = reinterpret_cast<PthreadInternal*>(
|
||||||
|
mmap(hint_address, sizeof(PthreadInternal), PROT_READ | PROT_WRITE,
|
||||||
|
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0));
|
||||||
|
hint_address += Common::AlignUp(sizeof(PthreadInternal), 4_KB);
|
||||||
|
#endif
|
||||||
ret->is_free = false;
|
ret->is_free = false;
|
||||||
ret->is_detached = false;
|
ret->is_detached = false;
|
||||||
ret->is_almost_done = false;
|
ret->is_almost_done = false;
|
||||||
|
@ -295,7 +295,7 @@ TileManager::TileManager(const Vulkan::Instance& instance, Vulkan::Scheduler& sc
|
|||||||
.bindingCount = static_cast<u32>(bindings.size()),
|
.bindingCount = static_cast<u32>(bindings.size()),
|
||||||
.pBindings = bindings.data(),
|
.pBindings = bindings.data(),
|
||||||
};
|
};
|
||||||
static auto [desc_layout_result, desc_layout] =
|
auto [desc_layout_result, desc_layout] =
|
||||||
instance.GetDevice().createDescriptorSetLayoutUnique(desc_layout_ci);
|
instance.GetDevice().createDescriptorSetLayoutUnique(desc_layout_ci);
|
||||||
ASSERT_MSG(desc_layout_result == vk::Result::eSuccess,
|
ASSERT_MSG(desc_layout_result == vk::Result::eSuccess,
|
||||||
"Failed to create descriptor set layout: {}", vk::to_string(desc_layout_result));
|
"Failed to create descriptor set layout: {}", vk::to_string(desc_layout_result));
|
||||||
|
Loading…
Reference in New Issue
Block a user