Files
reims-vgpu/scripts
Anees Iqbal 56e04b7630 build: --backend both, so the two rails can be compared without a rebuild
The Rust side has carried both rails since the selection commit; nothing could
produce a QEMU that used it. `scripts/qemu-build/qemu-build.sh --backend both`
now does, passing `-Dreims_vgpu_backend=both` to the submodule's meson (its own
commit).

Apple only, checked before meson runs so the message names the build choice
rather than arriving as a rustc error inside a custom target: `both` carries
`backend-metal`, which the crate rejects off macOS because there is no
host-stub Metal arm. The pre-existing metal-only check becomes a `case` over the
two backends that share that requirement.

`AGENTS.md` gains the fourth pathway row and the rule this whole branch is the
consequence of: **a `cfg` may answer only "what did this build compile", never
"which rail is running".** On the fourth row those are different questions and
the compiler cannot tell them apart — a `not(feature = "backend-vulkan")` block
meaning "the Metal arm" disappears silently when both features are on, which is
what `emit_object_cache_levels`, `mipmap` and `exec`'s preflight each did before
`Backend` took those decisions over. The row is documented as a measurement
configuration, not a shipping one.

Verified: `--backend both --target aarch64` configures, compiles and links
`qemu-system-aarch64` on this Apple host, and the linked binary carries both
rails — `compute_mtl_pipeline_ref_zero` *and* `compute_vk_pipeline_ref_zero`,
`MTLCreateSystemDefaultDevice` *and* `vkCreateInstance` — plus `rail_selected` /
`rail_refused` and `REIMS_VGPU_RAIL`. The `--backend vulkan` build was then
rebuilt to leave `vendor/qemu/build` configured as it was found.

Not verified: no guest boot on the both-rails binary. The three shipping
pathways are unaffected — `resolve_rail` returns a single-rail build's only rail
for every input — but the comparison this configuration exists for has not been
run against a guest yet.
2026-08-31 19:41:39 +03:00
..
2026-08-30 23:38:42 +03:00
2026-08-30 23:38:42 +03:00
2026-08-30 23:38:42 +03:00