[dxvk] Reject pipelines that set unused spec constants

This commit is contained in:
Philip Rebohle 2022-07-30 21:24:15 +02:00
parent 54f9eaf13c
commit 8d72b8e820
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 6 additions and 0 deletions

View File

@ -1080,6 +1080,12 @@ namespace dxvk {
}
}
// Validate spec constant state
for (uint32_t i = 0; i < MaxNumSpecConstants; i++) {
if (state.sc.specConstants[i] && !(m_specConstantMask & (1u << i)))
return false;
}
return true;
}