Files
reims-vgpu/Cargo.toml
T
Anees Iqbal 73703ba58c vulkan: the rail becomes a crate, starting with the layer that places memory
`reims-vgpu-vulkan` exists. The architecture names one layer as the sole
executor of the semantic model and the only place host capabilities become
placement and transfer policy, and "only place" is a claim a module boundary
cannot hold — a placement decision one `use` away from device state will
eventually read some. So it is a crate whose dependency list says what it may
see: `ash`, `reims-vgpu-core`, the refusal vocabulary, and the operator
switches. No QEMU, no device model, no guest-RAM ownership, no decode.

Its first content is `backend/vulkan/caps/memory_topology.rs`, moved whole and
unchanged apart from `crate::observe::fail` becoming `reims_vgpu_observe::fail`.
That module *is* "host capabilities become placement policy": it classifies
unified against discrete from two structural signals, never a device name, and
selects a memory type by preference with the required flags always as the
fallback — so a misclassification is a performance bug and never a correctness
one. It brings its own seventeen tests and the synthetic device shapes they run
against.

The rest of `caps/` cannot follow yet and the reason is worth recording:
`device_features.rs` reads `backend::vulkan::translate::pixel` in production
code, and `translate/` in turn reaches `runtime::census`, `runtime::decode`,
`runtime::spirv_vertex_input` and `engine`. The legacy backend is woven into the
runtime by 284 references across 25 modules; extracting it piecemeal produces a
`caps` split across two crates, which is worse than either end state. It leaves
at the cutover, and what grows here before then is the replacement executor.

`fixtures` is `pub` rather than behind a `testing` feature: the consumer that
needs it is in another crate, and a feature would either pull this rail into a
Metal-only test build or fork the fixtures — a second answer to what an AMD
APU's memory looks like.

Counts: the vulkan arm 2209 -> 2192 and the replacement crates 532 -> 552, which
is the same seventeen tests on the other side of a crate boundary. The
replacement-crates matrix cell now names the testkit and the rail too, so
neither can empty quietly.
2026-09-01 11:37:19 +03:00

38 lines
1.3 KiB
TOML

# Cargo workspace for the project's host-side product crate.
#
# Product path: crates/reims-vgpu (protocol + C ABI + Metal|Vulkan backend).
# UEFI option ROM: crates/reims-vgpu-efi (own Cargo workspace — x86_64-unknown-uefi;
# not a member here so host builds never pull the no_std PE graph).
[workspace]
resolver = "2"
members = [
"crates/reims-vgpu",
"crates/reims-vgpu-core",
"crates/reims-vgpu-config",
"crates/reims-vgpu-memory",
"crates/reims-vgpu-observe",
"crates/reims-vgpu-paging",
"crates/reims-vgpu-protocol",
"crates/reims-vgpu-testkit",
"crates/reims-vgpu-vulkan",
"crates/reims-vgpu-wire",
]
exclude = [
"crates/reims-vgpu-efi",
]
# The shipping artifact is this workspace's staticlib linked into QEMU, and the
# device's own largest cost is host CPU in that staticlib — `chain_phase` divides
# the whole per-draw chain and its columns are Rust work, not GPU work. So these
# are the settings the product runs under, not a developer convenience.
#
# `panic` stays at the default `unwind` and must not become `abort`: every
# `reims_vgpu_qemu_*` entry point wraps its body in `catch_unwind`
# (`device::mod`), because a Rust panic unwinding into QEMU's C frames is
# undefined behavior. Aborting would turn every caught panic into a dead VM.
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
incremental = true