Translator: the partial-threadgroups variant takes emulated simdgroups at the compile's entry too
compile.rs refused partial_threadgroups beside emulated_simdgroups before lowering, so the emulated variant's partial form never reached the walk a1cbbe66cf plans. Only a flat grid, folded groups and a replay's bindings are refused with it now. Found by an_emulated_partial_threadgroup_ exchanges_among_metal_s_threads on moltenvk-m3 (job m3-max-78894).
This commit is contained in:
1 parent
3a5ce18a81
commit
54d2087b83
1 file changed
+4
-7
@@ -2950,14 +2950,11 @@ fn analyze_one(r: &Request<'_>, p: &DeviceProfile, m: &mut Meter) -> Result<Anal
|
||||
} = ordered_entry(r, p, m)?;
|
||||
color_inputs_attached(&spec, r.inputs)?;
|
||||
let inputs = lower_inputs(&spec, r.inputs, p, m)?;
|
||||
// A partial threadgroups variant runs a direct `dispatchThreads` on subgroups, whose
|
||||
// invocations past the grid it walks: none of the other forms, and no emulated simdgroups. It
|
||||
// is refused first, so the variant asked with another form is refused as itself.
|
||||
// A partial threadgroups variant runs a direct `dispatchThreads`, whose invocations past the
|
||||
// grid it walks: none of the other forms. It is refused first, so the variant asked with
|
||||
// another form is refused as itself.
|
||||
if inputs.partial_threadgroups
|
||||
&& (inputs.flat_grid
|
||||
|| inputs.folded_groups
|
||||
|| inputs.replay_bindings
|
||||
|| inputs.emulated_simdgroups)
|
||||
&& (inputs.flat_grid || inputs.folded_groups || inputs.replay_bindings)
|
||||
{
|
||||
return Err(Unsupported::not_implemented(Feature::PartialThreadgroups).into());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user