mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-16 08:45:21 +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);
|
workers.WaitForRequests(stop_loading);
|
||||||
|
|
||||||
if (use_vulkan_pipeline_cache) {
|
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,
|
SerializeVulkanPipelineCache(vulkan_pipeline_cache_filename, vulkan_pipeline_cache,
|
||||||
CACHE_VERSION);
|
CACHE_VERSION);
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
@@ -747,7 +747,7 @@ void PipelineCache::QueueVulkanPipelineCacheFlush() {
|
|||||||
last_flush = now;
|
last_flush = now;
|
||||||
serialization_thread.QueueWork([this] {
|
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,
|
SerializeVulkanPipelineCache(vulkan_pipeline_cache_filename, vulkan_pipeline_cache,
|
||||||
CACHE_VERSION);
|
CACHE_VERSION);
|
||||||
size_t size = 0;
|
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);
|
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);
|
graphics_queue = logical.GetQueue(graphics_family);
|
||||||
present_queue = logical.GetQueue(present_family);
|
present_queue = logical.GetQueue(present_family);
|
||||||
|
|||||||
Reference in New Issue
Block a user