From 5733e58c4e3878bbeb426d3eb99430b687fa2ec0 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 20:07:02 -0800 Subject: [PATCH] replay: the rt backend answers a compute pipeline state's resource ID as none, reported as differing, where the play stopped (gb, lavapipe, m3-max-44039) --- crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs | 4 +++- docs/REPLAY-STREAM.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs b/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs index ff42c6aea..139db6c95 100644 --- a/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs +++ b/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs @@ -1078,7 +1078,9 @@ impl Backend for NewRuntime { let id = match self.objects.get(&object) { Some(Object::Texture(texture)) => texture.gpu_resource_id(), Some(Object::Sampler(sampler)) => sampler.gpu_resource_id(), - Some(Object::Skipped) => return Ok(None), + // The runtime gives a compute pipeline state no resource ID: it builds no indirect + // command buffers. The player reports the ID as differing. + Some(Object::ComputePipeline(_) | Object::Skipped) => return Ok(None), _ => { return Err(PlayError::Invalid(format!( "gpuResourceID of #{object}, which has none" diff --git a/docs/REPLAY-STREAM.md b/docs/REPLAY-STREAM.md index 4f88bb672..f3926fcc0 100644 --- a/docs/REPLAY-STREAM.md +++ b/docs/REPLAY-STREAM.md @@ -425,7 +425,8 @@ old runtime (the default) or the new one (`rt`), and writes `DIR/report.txt`. `c 256 MiB blocks of the runtime (a larger one in a block of its own), a range freed for reuse once every command buffer committed before its release completed, and gives textures and sampler states indices from the whole of each index class. Its readback serves Shared and Managed buffers only; a check of anything else - is a refusal. + is a refusal. The runtime gives a compute pipeline state no `gpuResourceID`, so each one the + program saw is reported on an `id` line as `none`. `report.txt` holds one line per item: `device NAME`, `completed IDS COUNTS`, `frame N COUNTS`, `check ID SHA256 match|differs|unrecorded`, `id ID RECORDED PLAYED` for each object whose runtime