Some meows

This commit is contained in:
CamilleLaVey
2026-08-22 21:40:47 -04:00
parent faf82ccdd7
commit 2df4744b53
2 changed files with 6 additions and 2 deletions
@@ -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);