From b8055603408a993f3c59d69a9edbda2c12565a26 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 10 May 2018 21:59:57 +0200 Subject: [PATCH] [dxvk] Do not log invalid pipeline state Fixes some log spam in case games attempt to render geometry with an invalid pipeline state vector. --- src/dxvk/dxvk_graphics.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/dxvk/dxvk_graphics.cpp b/src/dxvk/dxvk_graphics.cpp index 52dd9014a..79f3503b4 100644 --- a/src/dxvk/dxvk_graphics.cpp +++ b/src/dxvk/dxvk_graphics.cpp @@ -382,17 +382,13 @@ namespace dxvk { for (uint32_t i = 0; i < state.ilAttributeCount; i++) providedVertexInputs |= 1u << state.ilAttributes[i].location; - if ((providedVertexInputs & m_vsIn) != m_vsIn) { - Logger::err("DxvkGraphicsPipeline: Input layout mismatches vertex shader input"); + if ((providedVertexInputs & m_vsIn) != m_vsIn) return false; - } // If there are no tessellation shaders, we // obviously cannot use tessellation patches. - if ((state.iaPatchVertexCount != 0) && (m_tcs == nullptr || m_tes == nullptr)) { - Logger::err("DxvkGraphicsPipeline: Cannot use tessellation patches without tessellation shaders"); + if ((state.iaPatchVertexCount != 0) && (m_tcs == nullptr || m_tes == nullptr)) return false; - } // No errors return true;