From a1b2bb19071789ddb83f489125246bbc53b8155e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 23:38:09 -0800 Subject: [PATCH] RUNTIME_VERSION 1951 and the runtime-sources pin for the in-place check's own queue The three commits before this are radvruns' fix for a bug reims hit at pin 27 on Iris: the guest's texture reservation handed out IDs 1..15 twice. - Cause: the in-place check's command queue went through queue_place as a program's queue. It made the texture pool and took the device sampler, so a reservation after it kept the pool's first range (Metal's first-queue rule), and a sampler reservation after it was ignored. The race goes to the check on Iris, where more check classes run. - Fix: the check's queue is now made by Device::own_command_queue_now, and each queue records whom it was made for (MadeFor). Only a program's queue makes the pool or takes the device sampler, including the place a recovery re-makes. The ID answers change, which a stored runtime artifact can see. RUNTIME_VERSION goes 1949 -> 1951, skipping 1950, which pin 27b (67f9922c3c plus this fix, a separate branch) takes so that no two trees share a number. The runtime-sources pin is recomputed: e9c0cdabf11dcf274fa1cf9271b9fdc71fddcaa659d3912c2e7e56bbcb095e17. Verified at the tip ca36de998a by radvruns: - M3 MoltenVK 11102: clippy under m2v_gpu and m2v_cpu_icd 0; in_place_check, resource_ids, numbered_samplers, reserved_queues, queue*, device_recovery and caller_queue_writes 72/72. - 11099 at cdc84aff87: plain clippy 0, runtime suite 1357/1357. - lavapipe 11103: 73/73. - The new test, with the check's render queue made before the reservation: textures took 65..96, samplers 18..25, 0 late lines. - Negative control (base queue.rs and in_place_check.rs): 4/4 runs fail; textures took 1..15 inside the reservation, samplers 2..9, 1 late line. Still to run: RADV PHOENIX. The cherry-pick onto 3dad05d1cb was clean; this tree is not yet built. api-signatures --check, refusal-surface and conformance-coverage leave the docs unchanged. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index b7aa33a09..33c0ced7e 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -19dd0107e3c354befc4b67ce969ca4cdfbe494dcb5f10e8fecb9833a3f44ba81 +e9c0cdabf11dcf274fa1cf9271b9fdc71fddcaa659d3912c2e7e56bbcb095e17 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 54e1c9616..0e7915364 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 496; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 1949; +pub const RUNTIME_VERSION: u32 = 1951; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles