Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@realies
Copy link

@realies realies commented Jan 11, 2026

Summary

Add AMD GPU hardware acceleration support using Mesa's radeonsi VA-API driver for hardware video encoding. Tested with Ryzen 9 9950X integrated graphics.

Changes

  • runtime/Dockerfile.amd - Bullseye-based runtime for Polaris/Vega/RDNA1/RDNA2 GPUs
  • runtime/Dockerfile.amd.bookworm - Bookworm-based runtime for Zen 4 APUs and RDNA3 GPUs
  • runtime/amd/add-render-group.sh - Script to add neko user to render group for GPU access
  • runtime/amd/supervisord.rendergroup.conf - Supervisor config for render group setup
  • .github/workflows/ghcr_amd.yml - CI workflow for AMD image builds
  • utils/xorg-deps/Dockerfile - Updated to bookworm for xorg ABI 25 compatibility

Test Plan

  • Verified AMD GPU detection (Ryzen 9 9950X integrated Radeon Graphics - gfx1036)
  • Built bookworm variant with Mesa 22.3 (required for Zen 4 support)
  • Verified xorg-deps ABI compatibility (rebuilt with bookworm base)
  • Tested neko container with Firefox browser
  • Confirmed VAAPI hardware encoding with vaapih264enc GStreamer pipeline
  • Verified WebRTC connection and video streaming works

Usage

Important: AMD GPUs only support H264/HEVC hardware encoding, not VP8/VP9.

docker run -d \
  --device /dev/dri:/dev/dri \
  -e NEKO_VIDEO_CODEC=h264 \
  -e NEKO_HWENC=vaapi \
  -e LIBVA_DRIVER_NAME=radeonsi \
  -e LIBVA_DEVICE=/dev/dri/renderD128 \
  ghcr.io/m1k1o/neko/firefox:amd

Adjust LIBVA_DEVICE to your AMD GPU render node (check with ls /dev/dri/render*).

@realies realies force-pushed the feature/amd-gpu-support branch 2 times, most recently from e948454 to 21f7477 Compare January 12, 2026 00:21
Add support for AMD GPUs using Mesa's radeonsi VA-API driver for
hardware-accelerated video encoding. Tested with Ryzen 9 9950X
integrated graphics (gfx1036/Zen 4).

Changes:
- Add Dockerfile.amd (bullseye) for Polaris/Vega/RDNA1/RDNA2 GPUs
- Add Dockerfile.amd.bookworm for Zen 4 APUs and RDNA3 GPUs
- Add render group setup scripts for GPU device access
- Add GitHub workflow for automated AMD image builds
- Update xorg-deps to bookworm for xorg ABI 25 compatibility

Note: AMD hardware encoding requires H264 codec (NEKO_VIDEO_CODEC=h264)
as AMD GPUs do not support VP8/VP9 encoding.
@realies realies force-pushed the feature/amd-gpu-support branch from 21f7477 to c846af4 Compare January 12, 2026 00:47
@m1k1o
Copy link
Owner

m1k1o commented Jan 12, 2026

I cannot really test this. Don't have such GPU. I would have to trust you and other people that can test this, that it works as expected.

@realies
Copy link
Author

realies commented Jan 12, 2026

I think there's an issue, please do not merge yet.

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.

2 participants