Hang at a pass of no draw call over a mutable rate map, as Metal's GPU does
The steps this packet landed as, in order: - Keep the screen a rate-mapped pass took through a reset to another screen - Bump the runtime version for the fifteenth stack - Pin the runtime sources of the fifteenth stack Content: the tree of `development` at ea7b7cf4a4, unchanged.
This commit is contained in:
1 parent
0ca9a49a58
commit
e4a889debb
16 files changed
+508
-91
No files matched your search
@@ -1,5 +1,7 @@
|
||||
//! A command buffer whose render encoder drew primitive type 9 directly, of 3 vertices or more,
|
||||
//! at which Metal's GPU hangs (`DrawPrimitiveType::Nine`, `CommandBufferError::GpuHang`).
|
||||
//! at which Metal's GPU hangs (`DrawPrimitiveType::Nine`, `CommandBufferError::GpuHang`), or
|
||||
//! whose render pass of no draw call over a mutable rasterization-rate map it hangs at
|
||||
//! (`rate_mapped_pass.rs`), held alike.
|
||||
//! Measured on the M3 Max (macOS 27.0.1, 33 hangs, queues warmed and not): it read `Scheduled`
|
||||
//! 0.68 to 13.2 ms after its commit (about 1 ms, or 4.6 ms and more: its submission's own time),
|
||||
//! and Metal failed it 28.3 to 46.2 ms after its commit, 27.5 to 28.9 ms after it read
|
||||
|
||||
@@ -501,6 +501,9 @@ pub(super) struct State {
|
||||
/// (`render/queued_commits.rs`), which has not run: to the program, the command buffer is
|
||||
/// committed.
|
||||
queued_commit: bool,
|
||||
/// A render pass of it has a draw call over a `Mutable` rasterization-rate map: its commit
|
||||
/// lets a later pass of no draw call over such a map run (`rate_mapped_pass.rs`).
|
||||
pub(super) called_over_mutable_map: bool,
|
||||
/// `commit` is recording the encoders' segments (`encoder.rs`), outside this lock: nothing
|
||||
/// else may encode or commit meanwhile.
|
||||
committing: bool,
|
||||
@@ -1718,6 +1721,7 @@ impl CommandBuffer {
|
||||
#[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))]
|
||||
failures_injected: 0,
|
||||
queued_commit: false,
|
||||
called_over_mutable_map: false,
|
||||
committing: false,
|
||||
pool: None,
|
||||
replays: None,
|
||||
@@ -2444,6 +2448,11 @@ impl CommandBuffer {
|
||||
if let Some(problem) = failure.as_ref().and_then(|failure| failure.problem(ended)) {
|
||||
return Err(invalid(call, problem));
|
||||
}
|
||||
// A pass with a draw call over a mutable map lets later passes of none run on Metal's
|
||||
// GPU (`rate_mapped_pass.rs`).
|
||||
if state.called_over_mutable_map {
|
||||
(device.shared().mutable_rate_map_called).store(true, Ordering::Release);
|
||||
}
|
||||
// Metal's GPU fails a command buffer an encoder of which was made under protection
|
||||
// options as a failure given to `commit_failed` fails it, with no signal firing
|
||||
// (`protection.rs`); one given such a failure besides is not measured.
|
||||
|
||||
Reference in new issue
Block a user