Browse Source

[vk] only enable statistics bit if graphics debugging is enabled

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/243/head
crueter 7 months ago
parent
commit
07b6964410
  1. 2
      src/video_core/renderer_vulkan/vk_compute_pipeline.cpp

2
src/video_core/renderer_vulkan/vk_compute_pipeline.cpp

@ -55,7 +55,7 @@ ComputePipeline::ComputePipeline(const Device& device_, vk::PipelineCache& pipel
.requiredSubgroupSize = GuestWarpSize,
};
VkPipelineCreateFlags flags{};
if (device.IsKhrPipelineExecutablePropertiesEnabled()) {
if (device.IsKhrPipelineExecutablePropertiesEnabled() && Settings::values.renderer_debug.GetValue()) {
flags |= VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR;
}
pipeline = device.GetLogical().CreateComputePipeline(

Loading…
Cancel
Save