diff --git a/crates/metal2vulkan-runtime/src/render.rs b/crates/metal2vulkan-runtime/src/render.rs index 461325ef2..b75739253 100644 --- a/crates/metal2vulkan-runtime/src/render.rs +++ b/crates/metal2vulkan-runtime/src/render.rs @@ -10392,10 +10392,12 @@ impl RenderLowering { }; // A measured reader's drawing commands record inside its query, into its instance or // kept with its draws where the instance is kept (`render/inline_splits.rs`); not - // those of a pipeline still being made, which a later step records, nor a replay's - // (`render/coverage.rs`). A query never recorded reads as never run. - let covered_query = - covered_query.filter(|_| made_now.is_some() && self.replayed.is_none()); + // those of a pipeline still being made, which a later step records, nor a replay's, + // nor in an instance of views, whose query would take a query of the pool for each + // view (`render/coverage.rs`). A query never recorded reads as never run. + let covered_query = covered_query.filter(|_| { + made_now.is_some() && self.replayed.is_none() && self.current.shape.view_mask == 0 + }); for &phase in phases { let counted = covered_query.filter(|_| phase != Some(snapshot::Phase::Snapshot)); if let Some((pool, query)) = counted { diff --git a/crates/metal2vulkan-runtime/src/render/coverage.rs b/crates/metal2vulkan-runtime/src/render/coverage.rs index 8e434f5a2..c5fab3f14 100644 --- a/crates/metal2vulkan-runtime/src/render/coverage.rs +++ b/crates/metal2vulkan-runtime/src/render/coverage.rs @@ -32,8 +32,9 @@ //! device, `gpu_time.rs`): its readers are weighed by the area rule alone. Nor while a //! visibility query of the program's is active, which the rule's checks already refuse the //! snapshot for (one occlusion query is active at a time); nor a reader whose pipeline was still -//! being made (a later step records its draw) or that a replay records, nor past [`MEASURED`] -//! readers of a pass. An instance recorded inline after a split keeps the query's begin and end +//! being made (a later step records its draw), that a replay records or that draws views (a +//! query in a subpass of views takes one of the pool for each), nor past [`MEASURED`] readers of +//! a pass. An instance recorded inline after a split keeps the query's begin and end //! with its draws (`render/inline_splits.rs`), recorded once with them. A query whose commands //! never ran (an instance a reroute replaced, `render/reroute.rs`) reads as unavailable and //! teaches nothing. A draw that is no such reader records nothing and makes no pool.