Pin 92 moves metal2vulkan from 6a9a05ccad (RUNTIME_VERSION 2304, SEMANTICS_VERSION 2112, ARTIFACT_FORMAT_VERSION 522) to ce54ad8b25 (2310, 2114, 522). It carries: - writes and passes into the 4:4:4 `_sRGB` two-plane twins (523, 527) stored as Metal's GPU stores them (RUNTIME 2305), where the runtime refused them; - a texture over a bit-24 buffer that no image lies over read through a shadow of its read twin, so its commits compare nothing (2306); - a write through an argument buffer into a two-plane YCbCr texture stored or dropped as the same write through a slot (SEMANTICS 2114, RUNTIME 2307), where the runtime refused it; - on NVIDIA, no explicit LINEAR plane at a row pitch that is no multiple of 32 bytes, which the 5080 and the 3090 misread: such a texture takes a shadow or texel rows instead (2308); - a texture over a buffer whose rows are in place making its shadow at the first reach of its image rather than at its making, so a texture only ever bound through its rows makes none (2309); - an unshared queue's commit held only for its host step, its checks or a signal already submitted going before another queue's batch whose room came after it (2310), where it waited for that batch on the GPU; - spare command pools taken before making new ones, a replayed indirect command buffer draw walking its plan's heap members and resident uses once, a parked compute core and kept record storage, a split keeping its encoder's kept draws, a split encoder carrying its kept draw into the next, a rebound draw gathering shadow uses that differ from its kept draw's instead of stopping, scissor-only restates, and refusals that name the unknown key or the stage's weight, none of which bumps a version. What the guest sees changes: - A kernel's or a fragment function's write, or a pass, into a texture of 523 or 527 over a guest's surface plane completes and stores into the planes, where it ended the process at the runtime's refusal. - A kernel's write through an argument buffer into a two-plane YCbCr texture over a guest's surface plane completes: the 4:4:4 formats' writes change the planes and the 4:2:0 500's leaves them, as the same write through a slot, where every format ended the process. - On an NVIDIA host, textures at padded row pitches read the right texels. - A read through the resource ID of a texture no command names, whose shadow is not made yet, reads the neutral, where it read an image nothing had copied into. The IDs themselves do not change. - A compositor's frame on an unshared queue no longer waits on the GPU for another queue's batch sent while it was on its way. - Timing changes, and every host's shader caches and records go cold once at the first run of each pipeline, as SEMANTICS moves; ARTIFACT_FORMAT stays. The tests that held the refusals change with this commit. In gpu/ycbcr/plane_writes.rs, writes_over_surface_planes_are_stored_or_die_where_encoded becomes writes_over_surface_planes_are_stored, and writes_through_argument_buffers_of_two_plane_ycbcr_textures_die_where_encoded becomes writes_through_argument_buffers_of_two_plane_ycbcr_textures_are_the_slots, which checks 500's write as the process runs by default: where the device's own sampler conversion reads 500's planes (Iris Xe), the dispatch announces ycbcr-filter-not-exact for the texture the argument buffer holds, though the kernel only writes it, and strict mode dies there; the test takes that death and no other. gpu/ycbcr/sampling.rs's writes_of_444_textures_are_metals takes 523 and 527 among the formats whose kernel writes are stored, checking that their writes change the planes; their bytes are not compared with Metal's, of which none are recorded. gpu/ycbcr.rs's notes on writes say the same. The tests that tell a texture's shadow from the work counts (gpu/pages_in_place/tests.rs's the_answer_over_the_pages_is_what_the_runtimes_making_does, two of gpu/device.rs's padding-alias tests and graphics/vaapi/tests.rs's cache planes) count a shadow as shadowed_textures + shadows_left_unmade - shadows_made_at_use, since a texture whose rows are in place is now made with its shadow left unmade (2309). Where no shadow is left unmade, that is the count they read before. The runtime adds no Degradation kind (248) and RuntimeGap keeps its 80 names. WorkCounts gains command_buffers_made, read_twin_texture_shadows, draws_restated_scissors, parked_compute_taken, dispatches_settled_across_encoders, record_lists_grown, record_storage_kept, kept_draws_rehomed, shadows_left_unmade and shadows_made_at_use, which the work log flattens with the rest. The new RuntimeDriverDefect::ExplicitPlanePitchMisread, RuntimeFact::HeapStorageReads and SpecKey::HeapYCbCrWrites are matched nowhere here. The checks it reaches are the library's on the Mac and on each Linux GPU class, rustdoc, and, since the runtime's GPU results change for guest frameworks, a cold boot of the x86 guest on each GPU class and the arm64 gate. The video crate, the window crate's register, the guest sets, the option ROM and QEMU link nothing of the runtime's changes and cannot move. ce54ad8b25 is metal2vulkan's GREEN.
133 lines
5.9 KiB
TOML
133 lines
5.9 KiB
TOML
# ReimsVGPU: the framework and its tooling (architecture.md).
|
|
[workspace]
|
|
resolver = "3"
|
|
members = [
|
|
"crates/reims-vgpu-window",
|
|
"crates/reims-vgpu",
|
|
"crates/reims-vgpu-c",
|
|
"crates/reims-vgpu-vulkan",
|
|
"crates/reims-vgpu-video",
|
|
"crates/reims-vgpu-video/conformance",
|
|
"crates/reims-vgpu-graphics",
|
|
"xtask",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.98.1"
|
|
publish = false
|
|
license = "GPL-2.0-or-later OR LGPL-3.0-or-later"
|
|
|
|
[workspace.dependencies]
|
|
# Without their default features: each member that wants SDL3's macOS window asks for it
|
|
# (`macos-sdl`), so `reims-vgpu-c`'s default decides whether the library has it.
|
|
reims-vgpu-window = { path = "crates/reims-vgpu-window", default-features = false }
|
|
reims-vgpu = { path = "crates/reims-vgpu", default-features = false }
|
|
reims-vgpu-vulkan = { path = "crates/reims-vgpu-vulkan" }
|
|
# The reims-graphics device: its wire format and host side.
|
|
reims-vgpu-graphics = { path = "crates/reims-vgpu-graphics" }
|
|
# The reims-graphics device's video on the host: its runtime and memory (`crate::video` of
|
|
# `reims-vgpu`), and, on Linux, VA-API through libva and NVDEC through CUDA, their libraries
|
|
# loaded at run time (`graphics::vaapi` and `graphics::nvidia` of `reims-vgpu`).
|
|
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 = "ce54ad8b25a3f3da36fffdce268117df43b950d8" }
|
|
# Its translator, for the Metal enums and descriptor values the runtime's calls take.
|
|
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "ce54ad8b25a3f3da36fffdce268117df43b950d8" }
|
|
# 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
|
|
# version: `loaded` opens the Vulkan loader at run time, as the runtime does.
|
|
ash = { version = "0.38", default-features = false, features = ["std", "loaded"] }
|
|
# A display's window on Linux, and on macOS with REIMS_VGPU_WINDOW_IMPL=sdl
|
|
# (reims-vgpu-window/src/sdl): SDL3, built from its pinned source release (sdl3-src 3.4.18) and
|
|
# linked statically, with its video subsystem alone; its Vulkan types are ash's.
|
|
sdl3-sys = { version = "=0.7.2", default-features = false, features = [
|
|
"build-from-source-static",
|
|
"no-default-subsystems",
|
|
"sdl-video",
|
|
"use-ash-v0-38",
|
|
] }
|
|
# Metal's recorded answers too long for text, in xz files (core::testkit::metal_answers).
|
|
lzma-rs = "0.3.0"
|
|
# core (architecture 2.2)
|
|
parking_lot = "0.12.5"
|
|
zerocopy = { version = "0.8.27", features = ["derive"] }
|
|
# every crate's lines, and the default stderr logger (core::logging); `kv` for a line's `kind`,
|
|
# which tells the logger's kinds apart at one call site
|
|
log = { version = "0.4.34", features = ["kv"] }
|
|
# The macOS sides of the crates. objc2 `exception` is always on; `catch-all` is never enabled
|
|
# (architecture 2.3). objc2's checks (a message to nil, a missing method, the encodings) are
|
|
# debug assertions: on in dev, off in `checked` (the objc2 profile override below).
|
|
objc2 = { version = "0.6.4", features = ["exception"] }
|
|
objc2-foundation = "0.3.2"
|
|
objc2-metal = "0.3.2"
|
|
block2 = "0.6.2"
|
|
# the window crate (AppKit, Core Animation, CoreGraphics). Default features off: their defaults
|
|
# pull in every framework the crates cover (objc2-open-gl among them).
|
|
objc2-core-foundation = { version = "0.3.2", default-features = false, features = ["std"] }
|
|
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std"] }
|
|
objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["std"] }
|
|
objc2-core-graphics = { version = "0.3.2", default-features = false, features = ["std"] }
|
|
mach2 = "0.7"
|
|
libc = "0.2.180"
|
|
# The codecs' Annex B start-code scan (reims-vgpu-video's codec::h264::nal), at the version the
|
|
# lock already holds for the regex crates.
|
|
memchr = "2.8.3"
|
|
# The library's allocator on the targets that ship (reims-vgpu-c's global allocator): jemalloc,
|
|
# built from the crate's bundled source, with its symbols prefixed.
|
|
tikv-jemallocator = "0.7.0"
|
|
|
|
# Architecture 17.4. reims-vgpu-vulkan's core module adds its stricter set in core.rs.
|
|
[workspace.lints.rust]
|
|
unsafe_op_in_unsafe_fn = "deny"
|
|
missing_docs = "warn"
|
|
|
|
# The workspace's docs are its developers', built with its private items (`cargo doc
|
|
# --document-private-items`), where a public item's links to the private items its docs name
|
|
# resolve, and are checked as every other link is.
|
|
[workspace.lints.rustdoc]
|
|
private_intra_doc_links = "allow"
|
|
|
|
[workspace.lints.clippy]
|
|
unwrap_used = "deny"
|
|
expect_used = "deny"
|
|
panic = "deny"
|
|
todo = "deny"
|
|
|
|
# Architecture 2.3.
|
|
[profile.release]
|
|
panic = "unwind" # D9: objc2 exception::catch unwinds through its closure frame
|
|
overflow-checks = false # wrapping is explicit (D19); release is the product
|
|
debug = "line-tables-only"
|
|
lto = "thin"
|
|
|
|
[profile.dev]
|
|
panic = "unwind"
|
|
overflow-checks = true # an unannotated arithmetic slip dies in tests
|
|
debug = "line-tables-only" # backtraces keep file and line; full DWARF is `debugging`'s
|
|
|
|
[profile.dev.package."*"] # dependencies: no debuginfo
|
|
debug = false
|
|
|
|
[profile.debugging] # a debugger's build: dev with full debuginfo everywhere
|
|
inherits = "dev"
|
|
debug = true
|
|
|
|
[profile.debugging.package."*"]
|
|
debug = true
|
|
|
|
[profile.checked] # the suite's second pass (13.6)
|
|
inherits = "release"
|
|
overflow-checks = true
|
|
debug-assertions = true
|
|
|
|
# objc2's debug_assertions checks panic on a message to nil, on a missing
|
|
# method and on an encoding the runtime disagrees with. Dev builds keep them,
|
|
# so the tests that send to real Metal check every send they make; the
|
|
# suite's `checked` pass leaves them off, and release has none at all (D36).
|
|
[profile.checked.package.objc2]
|
|
debug-assertions = false
|