⬆️ Build on metal2vulkan 069ad0c586's runtime

Pin 67 moves metal2vulkan from 3bca3ce246 (RUNTIME_VERSION 2208,
SEMANTICS_VERSION 2081, ARTIFACT_FORMAT_VERSION 515) to 069ad0c586 (2215,
SEMANTICS_VERSION 2083, ARTIFACT_FORMAT_VERSION 516). It carries:
- an allocation at the device's limit taking back the blocks made ahead
  (2209);
- a tensor's 8-bit float widened by the device's own 8-bit float where it
  has shaderFloat8, the RTX 50 series (2210, SEMANTICS 2082, ARTIFACT 516);
- a commit's copies in from a host copy riding its batch, with no forced
  submission per 256 MiB staged: the RTX 2080's commit call 140.2 ms ->
  0.028 ms, the RTX 3090 Geekbench's commit calls 10.5 -> 1.7 s (2211);
- an idle device handing glibc's free heap back (2212);
- a commit's take of the noted Managed ranges looking only at buffers it
  may use (2213; 1k stale buffers on the XTX 0.874 -> 0.007 ms);
- a Managed buffer over a guest RAM's chunk end copied in by the GPU from
  the chunks' imports (2214; the 2080's 32 MiB commit 2.139 -> 0.035 ms);
- a flagged rate-mapped triangle list drawn in parts under FanOut: the
  triangles around its flagged range fanned out, the range region by
  region (2215, SEMANTICS 2083; a lane frame with wide triangles on the
  2080 39.6 -> 30.9 ms, on the 780M 373 -> 223 ms, pixels equal).

2210 adds the degradation kind NativeFloat8: the device's own 8-bit float
reads an e4m3 0x7F or 0xFF as a NaN where Metal reads 480 and -480, and an
e5m2 NaN's bits are the device's. It is placed in DIES and relayed off
Apple's GPUs as the class of the device's own maths, beside
NativeLogicOperation; the runtime builds no other form, as the device's
type is the only one where it exists, so REIMS_VGPU_EXACT gains no name.
WorkCounts gains managed_* and rate_map_parted_* fields and
WarmStatistics record_in_making(_nanos), which nothing here reads yet.

What the guest sees changes only in speed and in the 8-bit float NaN codes
on a device with shaderFloat8; the device's answers do not change.

Cargo.lock keeps its lines.
This commit is contained in:
Anees Iqbal committed 2026-11-13 02:46:10 -08:00
1 parent 6d3cdfecf3
commit 788d82edd3
3 files changed
+22 -7

No files matched your search

+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 = "3bca3ce2467dd5915a652acb99ef56dd2e01fbd5" }
metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "069ad0c58698421603eb65feaff6b5352fb8d40a" }
# Its translator, for the Metal enums and descriptor values the runtime's calls take.
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "3bca3ce2467dd5915a652acb99ef56dd2e01fbd5" }
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "069ad0c58698421603eb65feaff6b5352fb8d40a" }
# 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
+5 -2
View File
@@ -1157,7 +1157,8 @@ pub fn created_or_decided<T>(
/// (`DeviceSampling` and `DeviceTexelConversion`), its vertex input's conversion of a normalized
/// attribute (`DeviceVertexConversion`), its alpha to coverage (`DeviceAlphaCoverage`) and its
/// logic operation on a 10-bit or signed normalized attachment's own codes
/// (`NativeLogicOperation`). On a
/// (`NativeLogicOperation`), and its own 8-bit float, which a tensor's 8-bit float element widens
/// through (`NativeFloat8`). On a
/// device that runs on Metal (MoltenVK) the runtime answers most as Metal's own functions,
/// sampler and conversions, which announce nothing there, and one announced there dies (its
/// filter of a two-plane YCbCr texture announces `YCbCrFilterNotExact` instead). The runtime
@@ -1323,7 +1324,7 @@ pub fn created_or_decided<T>(
/// is placed; a kind whose answer the runtime states is Metal's (`rt::Exactness::Exact`: a
/// performance or validity kind) or one of Metal's where Metal's own is not one value
/// (`rt::Exactness::OneOfMetals`) is placed by that statement.
pub const DIES: [rt::Degradation; 147] = [
pub const DIES: [rt::Degradation; 148] = [
rt::Degradation::ReleasedCommandState,
rt::Degradation::TwoPlaneTextureCopy,
rt::Degradation::TwoPlaneBufferBlit,
@@ -1454,6 +1455,7 @@ pub const DIES: [rt::Degradation; 147] = [
rt::Degradation::DeviceVertexConversion,
rt::Degradation::DeviceAlphaCoverage,
rt::Degradation::NativeLogicOperation,
rt::Degradation::NativeFloat8,
rt::Degradation::ProvokingVertexLines,
rt::Degradation::ProvokingVertexUnmatched,
rt::Degradation::DeviceWideLines,
@@ -3235,6 +3237,7 @@ mod tests {
D::DeviceVertexConversion,
D::DeviceAlphaCoverage,
D::NativeLogicOperation,
D::NativeFloat8,
]
);
// These stay deaths on native devices too, as neither a fact of the device nor the
+15 -3
View File
@@ -88,8 +88,9 @@ pub struct NativeRelay {
/// `DecodedTexelPrecision` (sampling); `DeviceRoundedResolve` (the device's rounding of a resolve's
/// average); `DevicePackConversion` (its conversions of packed normalized values),
/// `DeviceVertexConversion` (its vertex input's conversion of a normalized attribute),
/// `DeviceAlphaCoverage` (its alpha to coverage) and `NativeLogicOperation` (its logic operation on
/// a 10-bit or signed normalized attachment's own codes). A device that runs on Metal (MoltenVK) is
/// `DeviceAlphaCoverage` (its alpha to coverage), `NativeLogicOperation` (its logic operation on
/// a 10-bit or signed normalized attachment's own codes) and `NativeFloat8` (its own 8-bit float,
/// which a tensor's 8-bit float element widens through). A device that runs on Metal (MoltenVK) is
/// an Apple GPU, where each still dies.
///
/// These die here, as on MoltenVK, as no class covers them: blending, storage, tessellation,
@@ -128,7 +129,7 @@ pub struct NativeRelay {
/// - `AttachmentReadInPlace`, a draw's access to an attachment's memory inside its render pass
/// instance other than as an attachment, where the runtime serves no copy or snapshot: its
/// exact form, the copy or snapshot a sampled slot's binding reads, the hardware allows.
pub const NATIVE_RELAYED: [NativeRelay; 39] = [
pub const NATIVE_RELAYED: [NativeRelay; 40] = [
NativeRelay {
kind: rt::Degradation::DeviceInterpolation,
ground: "a fragment function's interpolated input, on every device but MoltenVK, where \
@@ -467,6 +468,17 @@ pub const NATIVE_RELAYED: [NativeRelay; 39] = [
off Apple's GPUs, as for its maths and sampling, and draws it in the fragment \
function on MoltenVK, which has no `logicOp`",
},
NativeRelay {
kind: rt::Degradation::NativeFloat8,
ground: "class (e): a tensor's 8-bit float element widened through the device's own \
8-bit float (`shaderFloat8`, OCP's encodings), the only form where the device \
has one: an e4m3 0x7F or 0xFF reads as a NaN where Metal reads 480 and -480 \
(measured on the M3 Max), and an e5m2 NaN's bits are the device's where Metal \
reads 0x7FC00000; every other code reads Metal's value (the runtime's record, \
with no bound, as a NaN in a sum makes the sum a NaN). A device without \
`shaderFloat8` decodes the fields with integers, as Metal reads them, and \
announces nothing",
},
];
/// Where the process places a kind of [`DIES`](super::DIES).