[spv-in] patch calls from the entry points

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-03-16 22:08:06 -04:00
1 parent c5fe1d53c7
commit 9846a85174
1 file changed
+3 -2
+3 -2
View File
@@ -1809,8 +1809,9 @@ impl<I: Iterator<Item = u32>> Parser<I> {
for (_, fun) in module.functions.iter_mut() {
self.patch_function_calls(fun)?;
}
// Note: we aren't patching the entry point functions, because they are simply
// wrappers behind real functions, and are already resolved.
for ep in module.entry_points.iter_mut() {
self.patch_function_calls(&mut ep.function)?;
}
// Check all the images and samplers to have consistent comparison property.
for (handle, flags) in self.handle_sampling.drain() {