summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-11-02 01:47:08 +0100
committerLiam <byteslice@airmail.cc>2023-11-02 01:47:08 +0100
commit41701052d3ebbd2ed746beef342e1bdeaa9374e6 (patch)
treecfad1400627ce60615b2e4ae8b2bbec78c5de5e1
parentMerge pull request #11942 from t895/log-version (diff)
downloadyuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar.gz
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar.bz2
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar.lz
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar.xz
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.tar.zst
yuzu-41701052d3ebbd2ed746beef342e1bdeaa9374e6.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,