spv-out: support version 1.4 (#2230)

* spv-out: support version 1.4

* Extract SPV version numner from the comment
This commit is contained in:
Dzmitry Malyshau authored and GitHub committed 2023-02-01 12:24:05 +01:00
1 parent 6be394dac3
commit 16be1a9237
7 files changed
+66 -2

No files matched your search

+1 -1
View File
@@ -4221,7 +4221,7 @@ fn test_stack_size() {
let stack_size = addresses_end - addresses_start;
// check the size (in debug only)
// last observed macOS value: 19152 (CI)
if !(9500..=20000).contains(&stack_size) {
if !(9000..=20000).contains(&stack_size) {
panic!("`put_block` stack size {stack_size} has changed!");
}
}
+6
View File
@@ -585,6 +585,12 @@ impl Writer {
}
let mut gv = self.global_variables[handle.index()].clone();
if let Some(ref mut iface) = interface {
// Have to include global variables in the interface
if self.physical_layout.version >= 0x10400 {
iface.varying_ids.push(gv.var_id);
}
}
// Handle globals are pre-emitted and should be loaded automatically.
//