Tests: the linked store_const kernel's spec table holds its seven threadgroup constants
store_const_passes_the_pipeline_on_every_m1_profile still counted four specialization constants in the linked kernel's table (LocalSize X, Y and Z, and DeepThreadgroup). Since the WorkgroupSize composite's parts are plain specialization constants of their own, the table holds those three as well, seven in all. Atc1e0b2cbd5the suite (msi, job m3-max-70535) failed this one assertion, "moltenvk-m3, left: 7, right: 4"; at99f90c7503the same test had stopped earlier, at the check_artifact expectation thatc1e0b2cbd5fixed. Test-only. Verified by the plain clippy and the translator suite at this commit (job named in the lane's report).
This commit is contained in:
1 parent
c1e0b2cbd5
commit
d04f88f2cd
1 file changed
+3
-1
@@ -153,7 +153,9 @@ fn store_const_passes_the_pipeline_on_every_m1_profile() {
|
||||
compile(&bitcode, "store_const", &p).unwrap_or_else(|e| panic!("{stem}: compile: {e}"));
|
||||
check_artifact(&a, stem);
|
||||
let (table, words) = link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem}: {e}"));
|
||||
assert_eq!(table.spec.len(), 4, "{stem}");
|
||||
// The threadgroup's seven: `LocalSize` X, Y and Z, `DeepThreadgroup`, and the `WorkgroupSize`
|
||||
// composite's three parts.
|
||||
assert_eq!(table.spec.len(), 7, "{stem}");
|
||||
let ops = opcodes(&words);
|
||||
for op in [
|
||||
crate::spv::Op::SpecConstantComposite,
|
||||
|
||||
Reference in new issue
Block a user