summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-03 14:14:02 +0100
committerGitHub <noreply@github.com>2023-11-03 14:14:02 +0100
commit7f96f4db3fb03d2a74607d71da2018d932a162cc (patch)
tree517f9a8940c30a7617e93ef51a2e92249b4c3aad
parentMerge pull request #11936 from liamwhite/romfs-nonsense (diff)
parentrenderer_vulkan: minimize transform feedback support log (diff)
downloadyuzu-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
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp6
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,