Skip to content

Integrate AMD virtio native context#2

Draft
joshmue wants to merge 3 commits intogonicus:mainfrom
joshmue:amd-native-flatpak
Draft

Integrate AMD virtio native context#2
joshmue wants to merge 3 commits intogonicus:mainfrom
joshmue:amd-native-flatpak

Conversation

@joshmue
Copy link
Member

@joshmue joshmue commented Mar 1, 2026

Builds on #1

Todo: Needs testing and Vulkan support

Add Flatpak manifest (de.gonicus.Bubbles.json) with GNOME Platform 49,
desktop entry, appdata, and SVG icon. Prebuilt binaries (crosvm, socat,
qemu-img) and their Debian Trixie runtime libs are bundled via a compat
layer using LD_LIBRARY_PATH wrappers.

Replace CI build-ui + build-dist Docker jobs with build-tools (socat/qemu-img
from Debian Trixie container) and build-flatpak (flatpak-builder). bubbles
is built from source inside the Flatpak SDK. Add prebuild.bash for populating
prebuilt/ in local builds.

- Pin actions/checkout to @v5 major tag (was @v5.0.0)
- Add "Building from source" section to README explaining prebuild.bash
  and flatpak-builder workflow

LLM-assisted commit
- Build virglrenderer with amdgpu-experimental DRM renderer and crosvm
  with virgl_renderer feature (prebuild.bash)
- Build guest Mesa with -Damdgpu-virtio=true for native radeonsi over
  virtio-gpu; install into VM image (vm-image.yml)
- Start sommelier with --enable-linux-dmabuf for zero-copy DMA-BUF
  buffer forwarding (vm-image.yml)
- Set crosvm GPU flags to backend=virglrenderer,context-types=
  drm:cross-domain on AMD hosts; fall back to cross-domain only
  (software rendering) on non-AMD hosts (main.rs)
- Add LD_LIBRARY_PATH wrapper for crosvm to find virglrenderer
- Add seccomp patches for fcntl broadening and num_scanouts=0

LLM-assisted commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant