Runtime metrics: count the render states that interpolate at a sample

Where a render pipeline state's compiled content is made, beside the RenderContents gauge's rise,
a content whose translated pipeline interpolates at a sample (GraphicsState::interpolates_at_sample)
counts in Metrics::sample_interpolating_states. Red before it on lavapipe: job m3-max-84629.
This commit is contained in:
Anees Iqbal committed 2026-12-03 09:59:40 -08:00
1 parent 2545400e0d
commit 760b5f7de2
1 file changed
+3
@@ -1561,6 +1561,9 @@ impl RenderCompiled {
notes.sort_unstable();
notes.dedup();
core.counters.rise(Gauge::RenderContents);
if pipeline.graphics.interpolates_at_sample {
core.counters.count(Metric::SampleInterpolatingStates);
}
// A state whose fragment function reaches an imageblock is not made (`unbuilt`), so its
// sample is its colors alone.
let colors = (lowered.color_attachments).map(|color| color.map(|c| c.pixel_format));