From 05f24c3c3893061ba94c34777ef5f0e7619b76f6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 10 Jun 2018 04:19:30 +0200 Subject: [PATCH] [d3d11] Reduce log spam about UAV rendering --- src/d3d11/d3d11_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 6240eed27..ed7eef024 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -2095,7 +2095,10 @@ namespace dxvk { OMSetRenderTargets(NumRTVs, ppRenderTargetViews, pDepthStencilView); if (NumUAVs != D3D11_KEEP_UNORDERED_ACCESS_VIEWS) { - Logger::warn("D3D11: UAV rendering not properly implemented yet"); + static std::atomic s_warningShown = { false }; + + if (NumUAVs != 0 && !s_warningShown.exchange(true)) + Logger::warn("D3D11: UAV rendering not properly implemented yet"); // UAVs are made available to all shader stages in // the graphics pipeline even though this code may