1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-21 21:57:39 +01:00

[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

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