Translator tests: a description cleared of maximal reconvergence is cleared of quad control too
What: emulated_shuffles_keep_metals_reconvergence_without_maximal_reconvergence (lavapipe) and the_stage_bound_fixture_takes_the_lighter_module_or_states_its_weight (intel-irisxe-rplp-anv) clear shaderQuadControl beside shaderMaximalReconvergence in the committed profile they edit. Why: bc0c8ff615 refuses a description that lists quad control without maximal reconvergence, which no device offers, and these two tests built exactly such a description. They are the two test descriptions bc0c8ff615's count missed: they clear the reconvergence feature by its JSON name and never name quad control. Both time compute kernels, which read neither feature for their quads. Job m3-max-70805 (msi, at a59075a09d) failed them with that refusal; its other failure is the golden table (bless due, 60 cells, SEMANTICS 2289 above the table's 2287). Verified: the next job reruns both.
This commit is contained in:
1 parent
605159b1a8
commit
211c10a594
2 files changed
+22
-10
No files matched your search
@@ -1579,7 +1579,8 @@ fn emulated_operations_do_not_depend_on_reconvergence() {
|
||||
}
|
||||
|
||||
/// On lavapipe without maximal reconvergence (its description with `shaderMaximalReconvergence`
|
||||
/// cleared, as the runtime lane withholds the feature): the shuffles of `dsm2_shuffle_past_n` run
|
||||
/// cleared, as the runtime lane withholds the feature, and with it `shaderQuadControl`, which no
|
||||
/// device offers without it): the shuffles of `dsm2_shuffle_past_n` run
|
||||
/// on the emulated tier (8-lane subgroups cannot hold Metal's simdgroups), every tangled
|
||||
/// instruction is an emulated site, and the kernel's reconvergence is `Guaranteed`, compiled alone
|
||||
/// and as the compute pipeline the runtime makes.
|
||||
@@ -1591,10 +1592,15 @@ fn emulated_shuffles_keep_metals_reconvergence_without_maximal_reconvergence() {
|
||||
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../metal2vulkan-validation/profiles/lavapipe.json");
|
||||
let text = std::fs::read_to_string(path).expect("profile");
|
||||
let cleared = text.replace(
|
||||
"\"shaderMaximalReconvergence\": true",
|
||||
"\"shaderMaximalReconvergence\": false",
|
||||
);
|
||||
let cleared = text
|
||||
.replace(
|
||||
"\"shaderMaximalReconvergence\": true",
|
||||
"\"shaderMaximalReconvergence\": false",
|
||||
)
|
||||
.replace(
|
||||
"\"shaderQuadControl\": true",
|
||||
"\"shaderQuadControl\": false",
|
||||
);
|
||||
assert_ne!(
|
||||
cleared, text,
|
||||
"the description names shaderMaximalReconvergence"
|
||||
|
||||
@@ -2540,11 +2540,17 @@ fn the_stage_bound_fixture_takes_the_lighter_module_or_states_its_weight() {
|
||||
assert_eq!((entry_only(&module), weight(&module)), emulated);
|
||||
assert_eq!(function.module_stats().entry_weight, emulated.1);
|
||||
}
|
||||
// Without maximal reconvergence: emulated for the lockstep pair, with no pin to keep.
|
||||
let cleared = text.replace(
|
||||
"\"shaderMaximalReconvergence\": true",
|
||||
"\"shaderMaximalReconvergence\": false",
|
||||
);
|
||||
// Without maximal reconvergence (and so without quad control, which no device offers without
|
||||
// it): emulated for the lockstep pair, with no pin to keep.
|
||||
let cleared = text
|
||||
.replace(
|
||||
"\"shaderMaximalReconvergence\": true",
|
||||
"\"shaderMaximalReconvergence\": false",
|
||||
)
|
||||
.replace(
|
||||
"\"shaderQuadControl\": true",
|
||||
"\"shaderQuadControl\": false",
|
||||
);
|
||||
assert_ne!(
|
||||
cleared, text,
|
||||
"the description names shaderMaximalReconvergence"
|
||||
|
||||
Reference in new issue
Block a user