Files
reims-vgpu/Cargo.toml
T
Anees Iqbal eb601ecc10 ⬆️ Build on metal2vulkan development 9ea53f7acd
Moves both metal2vulkan revs from 5004f224a7 to 9ea53f7acd, 9 commits further
on its development branch, named checked by its job m3-max-59486. The lock is
unchanged: no manifest changes in the range, and it still carries no source
lines for the metal2vulkan packages. The range changes no API this tree calls:
it adds Feature::DivergentInterpolation and four Metrics fields, and deletes
DriverWorkaround::InterpolationNeedsTheWholeQuad, which nothing here names.

On rt, for the guest:
- Divergent interpolation is refused on every device (f3b9e0253a). A fragment
  function that reads an interpolant at a sample or an offset
  (interpolate_at_sample, interpolate_at_offset) outside its first block, or
  after a discard_fragment in it, is refused by the translator as
  Unsupported::not_implemented(Feature::DivergentInterpolation), where Metal
  makes it: the render pipeline state's creator answers its NSError, counted
  under rt-refused-translation, as the translator's other refusals are. Before,
  rt lowered the shape on every device, and RADV's sample and offset reads
  there read garbage where the quad's helper invocations had left. The same
  reads in the first block, before any discard, are made as before.
  docs/accuracy-ledger.md lists the refusal with rt's.
- A looping fragment function's sample-qualified varyings are read at every
  sample a pipeline of the device may have, before the loop, on every device
  (f3b9e0253a); rt read them inside the loop, where the helper invocations of
  a partly covered quad have left. The workaround that keyed this on RADV's
  release was set by nothing since the driver-fact tables went, and is
  deleted (7aa9abf911 re-pins its runtime sources' hash).
- SEMANTICS_VERSION goes from 2204 to 2205, so rt's shader and pipeline caches
  miss once more: the first run on each host translates its pipelines again
  (2258522299 re-pins the old render key at it).
- Metrics::held_starts and Metrics::held_start_gap_nanos (3d93acd6be): the
  sends of a group a queue held behind its three submissions in flight, and
  the GPU's nanoseconds from the latest end of the work submitted before each
  to its own first start.
- Metrics::pipeline_creation_nanos and Metrics::translation_nanos (33cdabd1fd,
  9ea53f7acd): a pipeline's make split between the driver's
  vkCreate*Pipelines calls and rt's calls into the translator (its reads of a
  kernel's inputs and partition and of a render variant, its lowerings, links
  and plans), failed calls included; the cache digests count none.
- The four counters change nothing the GPU runs, or when. The next commit
  writes them in rt's part of the 10 s summary.
- The event-wait deletion (a075319ea1, no semaphore wait submitted for an
  event's value) came with the pin before, at 5004f224a7; c919913869 corrects
  rt's docs after it and drops a check for waits no segment has any more.
  Nothing more changes for the guest.
- c0e1b47df5 and 96d335ef46 are rt's own tests: its layouts ledger keeps each
  image's steps in queue order, and an imported-alias test follows the
  compositor's order. Nothing changes for the guest.
2026-11-20 10:23:55 -08:00

136 lines
6.1 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" }
# 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 = "9ea53f7acde5e45f043a13ad19a1e32ba4fc2fb9" }
# 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 = "9ea53f7acde5e45f043a13ad19a1e32ba4fc2fb9" }
# 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",
] }
# 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 Windows sides of the crates: the Win32 calls they make, each crate naming the API areas it
# uses as features.
windows-sys = { version = "0.61.2", default-features = false }
# 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