1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Do not log invalid pipeline state

Fixes some log spam in case games attempt to render geometry
with an invalid pipeline state vector.
This commit is contained in:
Philip Rebohle 2018-05-10 21:59:57 +02:00
parent cfb4791872
commit b805560340
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;