⬆️ Build on metal2vulkan c471372f87's runtime

Moves the runtime from 9ce951f521 to c471372f87 (RUNTIME 2359 -> 2378;
SEMANTICS_VERSION 2124 -> 2125). The runtime's crate now turns on the
translator's serde feature for its repro bundles, so the lock adds serde to
metal2vulkan and metal2vulkan-air and serde_derive to serde. A device's
shader cache directory is now an Option (RUNTIME 2360: a memory-only device
has none), so the shader cache test expects the platform's directory. What
it brings:
- RUNTIME 2377: on Windows, long Shared, write-combined and Managed buffers
  and ICB records take fresh pages where the device imports host pointers and
  found no import tax, as on Linux and macOS, so a recovery keeps an ICB's
  records there too.
- RUNTIME 2375, 2373, 2378: making a texture, heap, view or buffer compiles no
  kernel; its own moves and decode kernels are made at first use or before
  the submission's lock.
- SEMANTICS 2125, RUNTIME 2376: a rate map's region copy records one row.
- RUNTIME 2363, 2365, 2369, 2371: compute dispatches reuse a plan made for
  another grid of their class, take sampler states only where needed, hold
  their pipeline objects by address and keep 16 plans a state.
- RUNTIME 2361, 2364, 2368, 2370, 2372, 2374: host RAM copies and encoders:
  kept plans are found as runs merge and bind their table from a buffer,
  a copy's imports are one flat list, and runs of one resource and dirty
  pages are noted as one use.
- RUNTIME 2360, 2362, 2366, 2367: a missing shader cache directory makes a
  memory-only device, a copy queue's buffer keeps commit order behind a held
  batch, repro bundles at a creation refusal (off by default), and a device
  made with its least queue plan reserves only what that plan reserves.
metal2vulkan's round at c471372f87 lists the degradation kinds added since
the last pin (none, per its notes); the boots' degradation counts show what
guests reach.
This commit is contained in:
Anees Iqbal committed 2026-11-15 12:51:53 -08:00
1 parent 84256851ec
commit 0287abaf13
3 files changed
+9 -3

No files matched your search

Generated
+3
View File
@@ -247,6 +247,7 @@ version = "0.2.0"
dependencies = [
"ash",
"metal2vulkan-air",
"serde",
"serde_json",
"sha2 0.11.1",
]
@@ -255,6 +256,7 @@ dependencies = [
name = "metal2vulkan-air"
version = "0.2.0"
dependencies = [
"serde",
"sha2 0.11.1",
]
@@ -579,6 +581,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
]
[[package]]
+2 -2
View File
@@ -33,9 +33,9 @@ reims-vgpu-graphics = { path = "crates/reims-vgpu-graphics" }
reims-vgpu-video = { path = "crates/reims-vgpu-video" }
# The Vulkan platform's runtime (architecture D1): a Metal-shaped API on Vulkan, from
# metal2vulkan's public repository at the commit both name.
metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "9ce951f521fb4d591c4dbd3427dc337fe6634362" }
metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "c471372f87b1c2e85a3c712c74edad38dd113826" }
# Its translator, for the Metal enums and descriptor values the runtime's calls take.
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "9ce951f521fb4d591c4dbd3427dc337fe6634362" }
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "c471372f87b1c2e85a3c712c74edad38dd113826" }
# 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
+4 -1
View File
@@ -1172,7 +1172,10 @@ pub(crate) mod tests {
use crate::core::platform::resource::{FunctionConstant, Library as _};
let raw = rt::Device::system_default_with(device_options()).expect("a device");
let dir = raw.shader_cache_directory().to_owned();
let dir = raw
.shader_cache_directory()
.expect("the shader cache's directory")
.to_owned();
let device = device::window_device(raw);
let before = device.raw.shader_cache_statistics();
let library = (device.new_library(include_bytes!("../../../tests/shaders/fc.metallib")))