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:
parent
cfb4791872
commit
b805560340
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user