docs: more changes to kumquat docs

- build.rs appends gfxstream_unstable automatically
- documentation on Nvidia

BUG=300140266
TEST=CI

Change-Id: I376d36c9e354fa06b20e4556dbe49cd3e31cd9f8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5698194
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Gurchetan Singh 2024-07-11 16:13:32 -07:00 committed by crosvm LUCI
parent 7ddec973f5
commit eb4de73dc9

View file

@ -69,13 +69,15 @@ machine. The following example shows how to run GL and Vulkan apps with `virtio-
`gfxstream-vulkan`. Full windowing will only work on platforms that support `dma_buf` and
`dma_fence`.
Only headless apps are likely to work on Nvidia, and requires
[this change](https://crrev.com/c/5698371).
## Build GPU-enabled server
First install [libaemu](#install-libaemu) and the [gfxstream-host](#install-gfxstream-host), then:
```sh
cd $(crosvm_dir)/rutabaga_gfx/kumquat/server/
export RUSTFLAGS="--cfg gfxstream_unstable"
cargo build --features=gfxstream
```
@ -114,6 +116,30 @@ export VK_ICD_FILENAMES=$(gfxstream_dir)/guest-build/guest/vulkan/gfxstream_vk_d
vkcube
```
# Linux guests
To test gfxstream with Debian guests, make sure your display environment is headless.
```
systemctl set-default multi-user.target
```
Build gfxstream-vk:
```sh
cd $(gfxstream_dir)
meson setup guest-build/ -Dgfxstream-build=guest
ninja -C guest-build/
```
Start the compositor:
```sh
export MESA_LOADER_DRIVER_OVERRIDE=zink
export VK_ICD_FILENAMES=$(gfxstream_dir)/guest-build/guest/vulkan/gfxstream_vk_devenv_icd.x86_64.json
weston --backend=drm
```
# Contributing to gfxstream
To contribute to gfxstream without an Android tree: