Fix forward of 60514: the mesh commit's three compile errors

- link: the tessellation slots' list is extended by the fan-out's below, so it stays mut.
- lower/dispatch: StorageClass went with the wrapper's group variables.
- the binder's stage test still passed metal_stages the emulated flag it lost.

Found by m3-max-60514 at 97b19bb1b3 (the same commit before its rebase onto de556604bb).
Verified: nothing yet (the next check job compiles it).
This commit is contained in:
Anees Iqbal committed 2026-11-20 15:28:31 -08:00
1 parent f7279104ae
commit 2242802b2a
4 files changed
+6 -8

No files matched your search

@@ -1 +1 @@
8e8b7862a25effbb1f60354e4b30d1e4eab06e81b6922f9d83c85ee89e8e9c23
adc5019c5b781a14ab277dc76a011ba17fca0d721685a02e7f6dd4b509616ecc
@@ -116,9 +116,8 @@ fn draws_map_to_the_vulkan_draw_of_the_same_arguments() {
#[test]
fn only_vertex_and_fragment_stages_are_render_stages() {
use vk::ShaderStage as S;
let stages = |modules: &[S], tessellated| {
metal_stages(modules.iter().copied(), (tessellated, false), false)
};
let stages =
|modules: &[S], tessellated| metal_stages(modules.iter().copied(), (tessellated, false));
let tessellation = [
S::VERTEX,
S::TESSELLATION_CONTROL,
@@ -126,7 +125,7 @@ fn only_vertex_and_fragment_stages_are_render_stages() {
S::FRAGMENT,
];
assert_eq!(
metal_stages(tessellation.iter().copied(), (false, true), false),
metal_stages(tessellation.iter().copied(), (false, true)),
Ok(vec![
(Stage::Vertex, S::VERTEX),
(Stage::Fragment, S::FRAGMENT)
+1 -2
View File
@@ -195,8 +195,7 @@ use crate::spirv::builder::{FunctionBuilder, ModuleBuilder};
use crate::spirv::error::BResult;
use crate::spirv::ids::{ConstId, DemoteTy, GlobalId, ScalarTy, TypeId, Value as SValue};
use crate::spirv::ir::{
BinOp, ConstBits, Constant, ConvOp, ExecMode, GlslOp, IoDir, MemAccess, SpecOp, StorageClass,
Type, UnOp,
BinOp, ConstBits, Constant, ConvOp, ExecMode, GlslOp, IoDir, MemAccess, SpecOp, Type, UnOp,
};
/// The builder's error for a value the declarations do not hold.
+1 -1
View File
@@ -428,7 +428,7 @@ pub fn link(
mesh::payload(&ifaces)?;
}
let mut table = LinkTable::default();
let synthesized: Vec<(ResourceSlot, vk::ShaderStageFlags)> = plan
let mut synthesized: Vec<(ResourceSlot, vk::ShaderStageFlags)> = plan
.as_ref()
.map(tessellation::ControlPlan::slots)
.unwrap_or_default()