diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-03 14:14:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 14:14:02 +0100 |
commit | 7f96f4db3fb03d2a74607d71da2018d932a162cc (patch) | |
tree | 517f9a8940c30a7617e93ef51a2e92249b4c3aad /src | |
parent | Merge pull request #11936 from liamwhite/romfs-nonsense (diff) | |
parent | renderer_vulkan: minimize transform feedback support log (diff) | |
download | yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar.gz yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar.bz2 yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar.lz yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar.xz yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.tar.zst yuzu-7f96f4db3fb03d2a74607d71da2018d932a162cc.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 059b7cb40..3983b2eb7 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -923,9 +923,13 @@ void RasterizerVulkan::UpdateDynamicStates() { } void RasterizerVulkan::HandleTransformFeedback() { + static std::once_flag warn_unsupported; + const auto& regs = maxwell3d->regs; if (!device.IsExtTransformFeedbackSupported()) { - LOG_ERROR(Render_Vulkan, "Transform feedbacks used but not supported"); + std::call_once(warn_unsupported, [&] { + LOG_ERROR(Render_Vulkan, "Transform feedbacks used but not supported"); + }); return; } query_cache.CounterEnable(VideoCommon::QueryType::StreamingByteCount, |