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:
parent
54f9eaf13c
commit
8d72b8e820
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user