From d8e52c599bbc239d778e5842b8de32fa6dff84b1 Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Sun, 7 Sep 2025 13:13:26 -0700 Subject: [PATCH] vk_pipeline_cache: Log pipeline creation. (#3544) --- src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 3d8d5ff58..31337da42 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -274,6 +274,9 @@ const GraphicsPipeline* PipelineCache::GetGraphicsPipeline() { } const auto [it, is_new] = graphics_pipelines.try_emplace(graphics_key); if (is_new) { + const auto pipeline_hash = std::hash{}(graphics_key); + LOG_INFO(Render, "Compiling graphics pipeline {:#x}", pipeline_hash); + it.value() = std::make_unique(instance, scheduler, desc_heap, profile, graphics_key, *pipeline_cache, infos, runtime_infos, fetch_shader, modules); @@ -295,6 +298,9 @@ const ComputePipeline* PipelineCache::GetComputePipeline() { } const auto [it, is_new] = compute_pipelines.try_emplace(compute_key); if (is_new) { + const auto pipeline_hash = std::hash{}(compute_key); + LOG_INFO(Render, "Compiling compute pipeline {:#x}", pipeline_hash); + it.value() = std::make_unique(instance, scheduler, desc_heap, profile, *pipeline_cache, compute_key, *infos[0], modules[0]);