mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-23 07:56:52 +00:00
Some meows
This commit is contained in:
@@ -712,7 +712,7 @@ void PipelineCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading
|
||||
workers.WaitForRequests(stop_loading);
|
||||
|
||||
if (use_vulkan_pipeline_cache) {
|
||||
std::unique_lock cache_lock{vulkan_pipeline_cache_mutex};
|
||||
std::shared_lock cache_lock{vulkan_pipeline_cache_mutex};
|
||||
SerializeVulkanPipelineCache(vulkan_pipeline_cache_filename, vulkan_pipeline_cache,
|
||||
CACHE_VERSION);
|
||||
size_t size = 0;
|
||||
@@ -747,7 +747,7 @@ void PipelineCache::QueueVulkanPipelineCacheFlush() {
|
||||
last_flush = now;
|
||||
serialization_thread.QueueWork([this] {
|
||||
{
|
||||
std::unique_lock lock{vulkan_pipeline_cache_mutex};
|
||||
std::shared_lock lock{vulkan_pipeline_cache_mutex};
|
||||
SerializeVulkanPipelineCache(vulkan_pipeline_cache_filename, vulkan_pipeline_cache,
|
||||
CACHE_VERSION);
|
||||
size_t size = 0;
|
||||
|
||||
@@ -729,6 +729,10 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
|
||||
}
|
||||
|
||||
logical = vk::Device::Create(physical, queue_cis, ExtensionListForVulkan(loaded_extensions), first_next, dld);
|
||||
if (!extensions.synchronization2) {
|
||||
dld.vkCmdPipelineBarrier2 = nullptr;
|
||||
dld.vkQueueSubmit2 = nullptr;
|
||||
}
|
||||
|
||||
graphics_queue = logical.GetQueue(graphics_family);
|
||||
present_queue = logical.GetQueue(present_family);
|
||||
|
||||
Reference in New Issue
Block a user