Translator tests: the mechanism table covers RuntimeFact::RobustStorageBuffers
Its pipeline state, the consumer's VkPipelineRobustnessCreateInfo. Clippy of the workspace's tests stopped at the two exhaustive matches (job m3-max-75002, a CPU build).
This commit is contained in:
1 parent
c2fc914a3e
commit
b20fb4a89d
1 file changed
+4
-1
@@ -199,6 +199,7 @@ fn every_fact() -> Vec<RuntimeFact> {
|
||||
},
|
||||
RuntimeFact::PrivateArena { slot_bytes: 28_704 },
|
||||
RuntimeFact::StencilBitDraws,
|
||||
RuntimeFact::RobustStorageBuffers,
|
||||
]
|
||||
}
|
||||
|
||||
@@ -292,6 +293,7 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
RuntimeFact::GridTiles => 50,
|
||||
RuntimeFact::PrivateArena { .. } => 68,
|
||||
RuntimeFact::StencilBitDraws => 85,
|
||||
RuntimeFact::RobustStorageBuffers => 86,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,7 +301,7 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
let facts = every_fact();
|
||||
let covered: std::collections::BTreeSet<usize> = facts.iter().map(variant).collect();
|
||||
assert_eq!(covered, (0..86).collect(), "every_fact misses a variant");
|
||||
assert_eq!(covered, (0..87).collect(), "every_fact misses a variant");
|
||||
for (stem, _) in super::committed_profiles() {
|
||||
let dev = device(&stem);
|
||||
let p = dev.profile();
|
||||
@@ -423,6 +425,7 @@ fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
| RuntimeFact::PrivateArena { .. }
|
||||
| RuntimeFact::StencilBitDraws => Mechanism::PushConstant,
|
||||
RuntimeFact::AliasedImageblock { .. } => Mechanism::None,
|
||||
RuntimeFact::RobustStorageBuffers => Mechanism::PipelineState,
|
||||
RuntimeFact::CallStackDepth { .. } | RuntimeFact::OpenClMode => Mechanism::None,
|
||||
};
|
||||
assert_eq!(m, expected, "{stem}: {fact:?}");
|
||||
|
||||
Reference in new issue
Block a user