From 85fbaa616efb441178a6542966530705934f9ecf Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 27 Nov 2026 06:42:49 -0800 Subject: [PATCH] :arrow_up: Build on metal2vulkan development 0b0ac58eb0 metal2vulkan's runtime now rounds a GPU time's nanoseconds to the nearest, not down (5089a1570a). A span of ticks of a period an f32 cannot state exactly came out a nanosecond short: 96 ticks of the Iris Xe's 19.2 MHz clock are 5000 ns, and the cast gave 4999. Every GPU span and placed time goes through the two expressions it changes: a command buffer's GPUStartTime and GPUEndTime, the held-start gaps and the runtime's GPU-time count. The rest of the range, 6 commits from 2b4219047e, is tests: the GPU-time duration, host-clock and calibration tests the old runtime's deletion took, and three guards of earlier fixes (each value a GPU signal raises is confirmed by a host wait before the host sees it; Shared coherence's counts held to the flush and invalidate calls made; a whole copy in moves from undefined). No translator change, so no guest kernel is translated again. What changes for the guest: a command buffer's GPU start and end times can be a nanosecond later than before, the nearest the GPU's ticks allow. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index be3a3fc24..c7b2a9294 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 = "2b4219047e3b6e4df45ff59f759b9a5b70131264" } +metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "0b0ac58eb0f69ed3b37007fbdf3b135a46f90699" } # 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 = "2b4219047e3b6e4df45ff59f759b9a5b70131264" } +metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "0b0ac58eb0f69ed3b37007fbdf3b135a46f90699" } # 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