From c2b5dd1ca69fdffdfffbb861b44a8c84db9d7aa0 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 03:41:47 -0800 Subject: [PATCH] :arrow_up: Build on metal2vulkan development 7193df2244 Moves the runtime pin from 77f3f2d99d to 7193df2244, on metal2vulkan's development, 5 commits on. For the guest: a resolve into a texture in place over a buffer of rt's own memory now resolves where the device's linear tiling renders the texture's format and its subresource lies inside its rows and its buffer (7193df2244): rt's linear image takes the colour attachment usage on the optimal image's terms. A pass that rt refused with Gap::RenderPass of ResolveUsage, as a guest's 4-sample BGRA8Unorm_sRGB resolve into a 600 x 600 ShaderRead texture over a Shared buffer was on the Radeon 780M, runs as Metal runs it. rt measured no linear image's row pitch, offset, size, alignment or memory types moving for the usage, so no texture leaves its place. On the RTX 3090 and KosmicKrisp the linear tiling renders no format, and such a resolve stays refused. For the host: - rt's fault line names an exported range by its block's number, "export block N" (7135c1bc6c: RangeKind::Export carries the BlockId). None of our code names the variant; the fault module's doc says so of rt's placement. - rt adds Metrics::emulated_simdgroup_dispatches (0d0c621ae1) and Metrics::kernel_makes_dropped (333c3dec38), which a later commit carries. - b6d367d7f1 is rt's test only. SEMANTICS (2273), ARTIFACT_FORMAT (591) and RUNTIME (2550) are unchanged and no translator file changed, so caches warmed at 77f3f2d99d stay warm. The dependencies metal2vulkan builds with are unchanged, so the stripped lock is. --- Cargo.toml | 4 ++-- crates/reims-vgpu-vulkan/src/rt_platform/fault.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6c6039834..db997a43b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,11 +33,11 @@ reims-vgpu-graphics = { path = "crates/reims-vgpu-graphics" } reims-vgpu-video = { path = "crates/reims-vgpu-video" } # metal2vulkan's Metal types, for the Metal enums and descriptor values the runtime's calls take, # from metal2vulkan's public repository at the commit both name. -metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "77f3f2d99d3792acd9fee6536c52cf0960fb521d" } +metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "7193df22444125a532163cd3c5d2945cbc810d02" } # The Vulkan platform's runtime (architecture D1), metal2vulkan-runtime: a Metal-shaped API on # Vulkan, one path for every device, under reims-vgpu-vulkan's `rt_platform` and `seam` and # reims-vgpu's `pool::rt_blocks`. -metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "77f3f2d99d3792acd9fee6536c52cf0960fb521d" } +metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "7193df22444125a532163cd3c5d2945cbc810d02" } # The hashes of the Vulkan platform's metallib sources (reims-vgpu-vulkan/build.rs). sha2 = "0.10.9" # A display window's swapchain on Linux (reims-vgpu-vulkan/src/swapchain.rs), at the runtime's diff --git a/crates/reims-vgpu-vulkan/src/rt_platform/fault.rs b/crates/reims-vgpu-vulkan/src/rt_platform/fault.rs index cd4291d07..56f45e72f 100644 --- a/crates/reims-vgpu-vulkan/src/rt_platform/fault.rs +++ b/crates/reims-vgpu-vulkan/src/rt_platform/fault.rs @@ -33,9 +33,9 @@ //! the host sees nothing, so the placement says only what lies around the address. //! - **rt's placement of each address** (`DeviceFault::places`), one line each, as rt's //! `FaultPlace` displays it: the ranges of rt's own that meet the bytes (its pool's -//! allocations, its parameter ring's blocks, imports, exports, surfaces' buffers and indirect -//! command buffers' preprocess regions), live or among the last it freed, and the nearest below -//! and above. It answers another question than the host's placement above, which places among +//! allocations, its parameter ring's blocks, imports, exports, each by its block's number +//! (`export block N`, rt's `BlockInfo::id`), surfaces' buffers and indirect command buffers' +//! preprocess regions), live or among the last it freed, and the nearest below and above. It answers another question than the host's placement above, which places among //! the guest's objects and the blocks the host sees: both are written. //! - **What the placement saw**: the live objects of each kind, the decoders and contexts whose //! tables were walked and those not walked, the live textures with no GPU range the platform